Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
- Re: Trouble Getting the Most Basic SeamTest to Work

- Re: Trouble Getting the Most Basic SeamTest to Work

2007-11-01       - By neilac333

 Back
I have moved to CR3 and based on the Wiki example have reconfigured my
classpath to load libraries in a special order.  Here is the classpath, which I
hope is self-explanatory:


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

I get this exception, which I can probably figure out on my own:


 | org.jboss.deployers.spi.DeploymentException: Unable to find bootstrap file:
conf/bootstrap-beans.xml in classpath
 |   at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:200)
 |   at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
 |   at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources
(EmbeddedBootstrap.java:11)
 |   at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary
(BaseSeamTest.java:1006)
 |   at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
 |   at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
 |   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)
 |   at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
 |   at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
 |   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
 |   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
 |   at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods
(TestMethodWorker.java:165)
 |   at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
 |   at org.testng.TestRunner.runWorkers(TestRunner.java:678)
 |   at org.testng.TestRunner.privateRun(TestRunner.java:624)
 |   at org.testng.TestRunner.run(TestRunner.java:495)
 |   at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
 |   at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
 |   at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
 |   at org.testng.SuiteRunner.run(SuiteRunner.java:190)
 |   at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
 |   at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
 |   at org.testng.TestNG.run(TestNG.java:699)
 |   at org.testng.TestNG.privateMain(TestNG.java:824)
 |   at org.testng.TestNG.main(TestNG.java:802)
 |

Now certain JARs in the Ant script in the example, like jboss-embedded-all.jar,
are not found in the CR3 distribution.  So I really need an idea as to what
JARs/bootstrap files I need and in what order I need to load them.

And I thought out-of-container testing was supposed to be easy!

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4101060
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.