I rewrote my Ant script slightly to add all the libraries in the Seam 2.0 
distribution to my classpath.  Here is the revised Ant script:


  | <path id="seam.test.class.path.libs">
  |       <fileset dir="${seam-hibernate.lib.dir}"
  |                includes="*embedded*.jar,*-all.jar,jboss-deployers.jar"/>
  |       <pathelement path="${seam-hibernate.lib.dir}/bootstrap"/>
  |       <fileset dir="${sun-jsf.lib.dir}"/>
  |       <fileset dir="${commons.lib.dir}"/>
  |       <fileset dir="${seam-hibernate.lib.dir}" 
excludes="*embedded*.jar,*-all.jar,jboss-deployers.jar"/>
  | </path>
  | 


Here also is the new classpath:


  | Executing 'C:\Program Files\Java\jdk1.5.0_12\jre\bin\java.exe' with 
arguments:
  | '-ea'
  | '-classpath'
  | 
'C:\project\libs\testing\testng\testng-5.6-jdk15.jar;C:\project\persistence\dist\project-persistence.jar;C:\project\libs\seam-hibernate\groovy-all.jar;C:\project\libs\seam-hibernate\hibernate-all.jar;C:\project\libs\seam-hibernate\jboss-deployers.jar;C:\project\libs\seam-hibernate\jboss-ejb3-all.jar;C:\project\libs\seam-hibernate\jboss-embedded-all.jar;C:\project\libs\seam-hibernate\jboss-embedded-api.jar;C:\project\libs\seam-hibernate\jcaptcha-all.jar;C:\project\libs\seam-hibernate\thirdparty-all.jar;C:\project\libs\seam-hibernate\bootstrap;C:\project\libs\sun-jsf\el-api.jar;C:\project\libs\sun-jsf\el-ri.jar;C:\project\libs\sun-jsf\jsf-api.jar;C:\project\libs\sun-jsf\jsf-impl.jar;C:\project\libs\sun-jsf\jstl.jar;C:\project\libs\sun-jsf\servlet-api.jar;C:\project\libs\commons\commons-beanutils.jar;C:\project\libs\commons\commons-collections.jar;C:\project\libs\commons\commons-digester.jar;C:\project\libs\commons\commons-discovery.jar;C:\project\libs\commons\commons-el.ja!
 
r;C:\project\libs\commons\commons-fileupload.jar;C:\project\libs\commons\commons-lang.jar;C:\project\libs\commons\commons-logging-api.jar;C:\project\libs\commons\commons-logging.jar;C:\project\libs\seam-hibernate\activation.jar;C:\project\libs\seam-hibernate\ant-antlr.jar;C:\project\libs\seam-hibernate\antlr-runtime.jar;C:\project\libs\seam-hibernate\antlr.jar;C:\project\libs\seam-hibernate\asm-attrs.jar;C:\project\libs\seam-hibernate\asm.jar;C:\project\libs\seam-hibernate\bootstrap\conf\bootstrap-beans.xml;C:\project\libs\seam-hibernate\bootstrap\conf\jboss-service.xml;C:\project\libs\seam-hibernate\bootstrap\conf\jbossjta-properties.xml;C:\project\libs\seam-hibernate\bootstrap\conf\login-config.xml;C:\project\libs\seam-hibernate\bootstrap\conf\props\messaging-roles.properties;C:\project\libs\seam-hibernate\bootstrap\conf\props\messaging-users.properties;C:\project\libs\seam-hibernate\bootstrap\data\hypersonic\dvd.log;C:\project\libs\seam-hibernate\bootstrap\data\hypersoni!
 c\dvd.properties;C:\project\libs\seam-hibernate\bootstrap\data\hyperso
nic\localDB.lck;C:\project\libs\seam-hibernate\bootstrap\data\hypersonic\localDB.log;C:\project\libs\seam-hibernate\bootstrap\data\hypersonic\localDB.properties;C:\project\libs\seam-hibernate\bootstrap\data\hypersonic\localDB.script;C:\project\libs\seam-hibernate\bootstrap\data\jboss.identity;C:\project\libs\seam-hibernate\bootstrap\deploy\ejb3-interceptors-aop.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\hsqldb-ds.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\jboss-local-jdbc.rar;C:\project\libs\seam-hibernate\bootstrap\deploy\jboss-xa-jdbc.rar;C:\project\libs\seam-hibernate\bootstrap\deploy\jms-ra.rar;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\connection-factories-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\destinations-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\hsqldb-persistence-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\jms-ds.xml;C:\project\libs\seam-hibernate\bo!
 
otstrap\deploy\messaging\legacy-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\messaging-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\messaging\remoting-service.xml;C:\project\libs\seam-hibernate\bootstrap\deploy\remoting-service.xml;C:\project\libs\seam-hibernate\bootstrap\deployers\aspect-deployer-beans.xml;C:\project\libs\seam-hibernate\bootstrap\deployers\ejb3-deployers-beans.xml;C:\project\libs\seam-hibernate\bootstrap\deployers\jca-deployers-beans.xml;C:\project\libs\seam-hibernate\bootstrap\jndi.properties;C:\project\libs\seam-hibernate\bootstrap\log4j.xml;C:\project\libs\seam-hibernate\bootstrap\readme.txt;C:\project\libs\seam-hibernate\cglib-nodep.jar;C:\project\libs\seam-hibernate\cglib.jar;C:\project\libs\seam-hibernate\core.jar;C:\project\libs\seam-hibernate\dom4j.jar;C:\project\libs\seam-hibernate\ejb-api.jar;C:\project\libs\seam-hibernate\ejb3-persistence.jar;C:\project\libs\seam-hibernate\gwt-servlet.jar;C:\project\libs\s!
 eam-hibernate\hibernate-annotations.jar;C:\project\libs\seam-hibernate
\hibernate-commons-annotations.jar;C:\project\libs\seam-hibernate\hibernate-entitymanager.jar;C:\project\libs\seam-hibernate\hibernate-search.jar;C:\project\libs\seam-hibernate\hibernate-validator.jar;C:\project\libs\seam-hibernate\hibernate.jar;C:\project\libs\seam-hibernate\itext.jar;C:\project\libs\seam-hibernate\janino.jar;C:\project\libs\seam-hibernate\javassist.jar;C:\project\libs\seam-hibernate\jaxb-api.jar;C:\project\libs\seam-hibernate\jaxws-api.jar;C:\project\libs\seam-hibernate\jboss-aop.jar;C:\project\libs\seam-hibernate\jboss-archive-browsing.jar;C:\project\libs\seam-hibernate\jboss-cache.jar;C:\project\libs\seam-hibernate\jboss-common-core.jar;C:\project\libs\seam-hibernate\jboss-container.jar;C:\project\libs\seam-hibernate\jboss-dependency.jar;C:\project\libs\seam-hibernate\jboss-el.jar;C:\project\libs\seam-hibernate\jboss-jmx.jar;C:\project\libs\seam-hibernate\jboss-kernel.jar;C:\project\libs\seam-hibernate\jboss-logging-spi.jar;C:\project\libs\seam-hibernate!
 
\jboss-seam-debug.jar;C:\project\libs\seam-hibernate\jboss-seam-gen.jar;C:\project\libs\seam-hibernate\jboss-seam-ioc.jar;C:\project\libs\seam-hibernate\jboss-seam-mail.jar;C:\project\libs\seam-hibernate\jboss-seam-pdf.jar;C:\project\libs\seam-hibernate\jboss-seam-remoting.jar;C:\project\libs\seam-hibernate\jboss-seam-ui.jar;C:\project\libs\seam-hibernate\jboss-seam.jar;C:\project\libs\seam-hibernate\jboss-system.jar;C:\project\libs\seam-hibernate\jbossxb.jar;C:\project\libs\seam-hibernate\jbpm-jpdl.jar;C:\project\libs\seam-hibernate\jcommon.jar;C:\project\libs\seam-hibernate\jfreechart.jar;C:\project\libs\seam-hibernate\jgroups.jar;C:\project\libs\seam-hibernate\jms.jar;C:\project\libs\seam-hibernate\jta.jar;C:\project\libs\seam-hibernate\log4j.jar;C:\project\libs\seam-hibernate\lucene-core.jar;C:\project\libs\seam-hibernate\mail-ra.jar;C:\project\libs\seam-hibernate\mail.jar;C:\project\libs\seam-hibernate\meldware-mailapi.jar;C:\project\libs\seam-hibernate\meldware-mailjm!
 x.jar;C:\project\libs\seam-hibernate\mvel14.jar;C:\project\libs\seam-h
ibernate\persistence-api.jar;C:\project\libs\seam-hibernate\portlet-api.jar;C:\project\libs\seam-hibernate\quartz.jar;C:\project\libs\seam-hibernate\urlrewritefilter.jar;C:\project\libs\testing\jmock\cglib-2.1_3-src.jar;C:\project\libs\testing\jmock\cglib-nodep-2.1_3.jar;C:\project\libs\testing\jmock\hamcrest-core-1.1.jar;C:\project\libs\testing\jmock\hamcrest-library-1.1.jar;C:\project\libs\testing\jmock\jmock-2.4.0.jar;C:\project\libs\testing\jmock\jmock-junit4-2.4.0.jar;C:\project\libs\testing\jmock\jmock-legacy-2.4.0.jar;C:\project\libs\testing\jmock\objenesis-1.0.jar;C:\project\model\dist\project-model-test.jar'
  | 'org.testng.TestNG'
  | 

Sadly, all of this effort yields the same NullPointerException.  

I should note also that the above contains hibernate-all.jar.  I get the same 
result whether or not it is included.

Thanks for any insight.

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

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

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to