[jboss-user] [JBoss Seam] - Re: Seam and maven2 running tests

Lightguard do-not-reply at jboss.com
Sat May 26 01:57:53 EDT 2007


I'm getting closer now :)  Here's the error with the booking demo:

   -------------------------------------------------------------------------------
  |    Test set: org.jboss.seam.example.booking.test.BookingTest
  |    -------------------------------------------------------------------------------
  |    Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.56 sec <<< FAILURE!
  |    testBookHotel(org.jboss.seam.example.booking.test.BookingTest)  Time elapsed: 0.592 sec  <<< FAILURE!
  |    org.jboss.seam.InstantiationException: Could not instantiate Seam component: hotelSearch
  |     at org.jboss.seam.Component.newInstance(Component.java:1740)
  |     at org.jboss.seam.Component.getInstance(Component.java:1643)
  |     at org.jboss.seam.Component.getInstance(Component.java:1610)
  |     at org.jboss.seam.Component.getInstance(Component.java:1604)
  |     at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  |    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
  |    at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:73)
  |    at com.sun.el.parser.AstValue.getTarget(AstValue.java:67)
  |    at com.sun.el.parser.AstValue.setValue(AstValue.java:147)
  |    at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:258)
  |    at org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
  |   at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
  |   at org.jboss.seam.example.booking.test.BookingTest$2.updateModelValues(BookingTest.java:68)
  |   at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
  |   at org.jboss.seam.example.booking.test.BookingTest.testBookHotel(BookingTest.java:63)

The odd thing is, it's registered earlier...

23:25:00,566 INFO  [Component] Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.se      am.example.booking.HotelSearchingAction, JNDI: HotelSearchingAction/local

It seems like someone was having a similar issue, and either it wasn't resolved or I can't find it.  Anyone have any ideas?  Also when I run my tests, seam is loaded twice, not sure why on that one.

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

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



More information about the jboss-user mailing list