[jboss-user] [JBoss Seam] - Problem running TestNG tests from maven

2007-04-26 Thread ehstowa
Hi,
we are running 
Seam 1.2.1
MyFaces 1.1.5 
on Tomcat 5.5.20

When running TestNG tests from Eclipse or Idea, all tests work fine, however 
when running them from Maven, all fail with the error:
java.lang.NullPointerException
at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:418)
at com.fastsearch.w2p.moox.seamtests.LoginTest.registerTest(LoginTest.java:18)

where we are attemting the first action in the test (Bold line):

public class LoginTest extends MooxSeamTest {
  | @Test(groups = {seam})
  | public void registerTest() throws Exception {
  | new FacesRequest(index.html) {
  | 

Does anybody have any ideas?

Thanks
/ Tomas


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040905#4040905

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040905
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad probl

2007-02-19 Thread ehstowa
Hi,
I m using Seam 1.1.6
, Myfaces 1.1.4
, Facelets 1.1.12
, Ajax4JSF 1.0.6
, Trinidad incubator-m1-SNAPSHOT

, but cant get it to run with the trinidad part.

I have tried to follow all the example apps the a4j, seam and trinidad sites 
have posted, but still get the error below.

My web.xml:
anonymous wrote : ?xml version=1.0 encoding=UTF-8?
  | web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
  | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  | 
  | display-nameMoox Web Application/display-name
  | Moox Web Application.
  | 
  | context-param 
  | !--  Use: Specifies paths to JSF application configuration resource 
files.
  | Value: A comma-separated list of application-context-relative 
paths. --
  | param-namejavax.faces.CONFIG_FILES/param-name  
  | param-value/WEB-INF/navigation.xml/param-value   
  | /context-param
  |  
  | !-- Ajax4jsf (must come first!) --
  | 
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  | init-param
  | param-nameforceparser/param-name
  | param-valuefalse/param-value
  | /init-param
  | 
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern*.jspx/url-pattern
  | REQUEST
  | FORWARD
  | INCLUDE
  | /filter-mapping
  | 
  | !-- Trinidad --
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | param-valuecom.sun.facelets.FaceletViewHandler/param-value
  | /context-param
  | context-param
  | param-namefacelets.VIEW_MAPPINGS/param-name
  | param-value*.jspx/param-value
  | /context-param
  | context-param
  | param-name
  | org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
  | /param-name
  | param-valuefalse/param-value
  | /context-param
  | context-param
  | param-namecom.sun.faces.validateXml/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | !-- Seam --
  | context-param
  | param-nameorg.jboss.seam.core.init.debug/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | 
  | listener-class
  | org.jboss.seam.servlet.SeamListener
  | /listener-class
  | 
  | 
  | !-- Enable Seam to propagate the conversation context across the 
browser redirects (JSF post-then-redirect) --
  | 
  | filter-nameSeam Redirect Filter/filter-name
  | filter-class
  | org.jboss.seam.servlet.SeamRedirectFilter
  | /filter-class
  | 
  | filter-mapping
  | filter-nameSeam Redirect Filter/filter-name
  | url-pattern*.jspx/url-pattern
  | /filter-mapping
  | 
  | 
  | !-- Servlet config --
  | 
  | servlet-nameFaces Servlet/servlet-name
  | servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  | load-on-startup1/load-on-startup
  | 
  | 
  | !-- Faces Servlet Mapping --
  | servlet-mapping
  | servlet-nameFaces Servlet/servlet-name
  | url-pattern*.jspx/url-pattern
  | /servlet-mapping
  | 
  | 
  | !-- JSF --
  | context-param
  | !--  Use: Specifies a file extension (suffix) for JSP pages that 
contain JSF components. The default is .jsp.
  | Value: A file extension. --
  | param-namejavax.faces.DEFAULT_SUFFIX/param-name
  | param-value.jspx/param-value
  | /context-param
  | context-param
  | !--  Use: Selects a state saving method.
  | Value: Either server or client. 
  | The default is server, which stores the 
application's view state on the server. 
  | If you select client, JSF stores the view state 
on the browser client. --
  | param-namejavax.faces.STATE_SAVING_METHOD/param-name
  | param-valueclient/param-value
  | /context-param
  | 
  | context-param
  | param-namefacelets.DEVELOPMENT/param-name
  | param-valuetrue/param-value
  | /context-param
  | context-param
  | param-namefacelets.REFRESH_PERIOD/param-name
  | param-value2/param-value
  | /context-param
  | 
  | 
  | !-- MyFaces --
  | context-param
  | param-nameorg.apache.myfaces.PRETTY_HTML/param-name
  | param-valuetrue/param-value
  | /context-param
  | 

[jboss-user] [JBoss Seam] - Re: Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad p

2007-02-19 Thread ehstowa
Hi again,
thanks but as I am using the correct view_handler 
context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | !-- 
param-valuecom.sun.facelets.FaceletViewHandler/param-value --
  | /context-param
  | 

as I am using Trinidad.

The problem is solved however, it was that I needed to replace my HTML tags 
to tr:document on the JSP page, according to 
http://incubator.apache.org/adffaces/spec-diff.html

Thanks,
Tomas

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018834#4018834

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018834
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user