[jboss-user] [JBoss Seam] - [1.3 CVS] Still getting IllegalStateException: No applicatio
wesleyhales
do-not-reply at jboss.com
Fri Jun 22 17:09:52 EDT 2007
Sorry for beating a dead horse, but I still can't get a simple app running in Tomcat with Embedded Jboss... (is there a specific sample project I can look at?) if not, can we get one? - I ran dvd,booking,and wiki and none of them did the trick.
INFO: Initialization processed in 637 ms
| WARN 22-06 16:57:39,103 (UnifiedLoaderRepository3.java:addClassLoader:675) -Tried to add non-URLClassLoader. Ignored
| WARN 22-06 16:57:40,462 (TxControl.java:<clinit>:266) -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using a66f425:
| 49e:467c37c4:0
| WARN 22-06 16:57:43,611 (JDBCPersistenceManager.java:start:143) -
|
| JBoss Messaging Warning: DataSource connection transaction isolation should be READ_COMMITTED, but it is currently NONE.
| Using an isolation level less strict than READ_COMMITTED may lead to data consistency problems.
| Using an isolation level more strict than READ_COMMITTED may lead to deadlock.
|
| Jun 22, 2007 4:57:44 PM org.apache.catalina.core.StandardService start
| INFO: Starting service Catalina
| Jun 22, 2007 4:57:44 PM org.apache.catalina.core.StandardEngine start
| INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
| Jun 22, 2007 4:57:44 PM org.apache.catalina.loader.WebappLoader start
| INFO: Dual registration of jndi stream handler: factory already defined
| Jun 22, 2007 4:57:45 PM org.apache.catalina.startup.ContextConfig validateSecurityRoles
| INFO: WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role>
| WARN 22-06 16:57:49,018 (JBossTimerServiceFactory.java:restoreTimerService:112) -TIMER SERVICE IS NOT INSTALLED
| WARN 22-06 16:57:49,218 (JBossTimerServiceFactory.java:restoreTimerService:112) -TIMER SERVICE IS NOT INSTALLED
| Jun 22, 2007 4:57:49 PM com.sun.faces.config.ConfigureListener contextInitialized
| INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context '/freedom'
| Jun 22, 2007 4:57:52 PM org.apache.coyote.http11.Http11Protocol start
| INFO: Starting Coyote HTTP/1.1 on http-8080
| Jun 22, 2007 4:57:52 PM org.apache.jk.common.ChannelSocket init
| INFO: JK: ajp13 listening on /0.0.0.0:8009
| Jun 22, 2007 4:57:52 PM org.apache.jk.server.JkMain start
| INFO: Jk running ID=0 time=0/20 config=null
| Jun 22, 2007 4:57:52 PM org.apache.catalina.startup.Catalina start
| INFO: Server startup in 15144 ms
| ERROR 22-06 16:58:22,276 (SeamPhaseListener.java:beforePhase:122) -uncaught exception
| java.lang.IllegalStateException: Could not start transaction
| at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:569)
| at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:308)
| at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:143)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:62)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:139)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.transaction.UTTransaction.getStatus(UTTransaction.java:40)
| at org.jboss.seam.transaction.UserTransaction.isActiveOrMarkedRollback(UserTransaction.java:28)
| at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:561)
| ... 33 more
| ERROR 22-06 16:58:22,446 (DebugPageHandler.java:handle:23) -redirecting to debug page
faces-config:
<application>
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| </application>
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
web.xml
<?xml version="1.0"?>
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
|
| <description>freedom</description>
|
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.request.charset</param-name>
| <param-value>UTF-8</param-value>
| </context-param>
|
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
|
|
| <!-- Seam -->
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
|
| <!-- Seam resources -->
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
|
|
| <listener>
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
|
|
| <!-- Faces Servlet -->
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
|
| <security-constraint>
| <display-name>Restrict raw XHTML Documents</display-name>
| <web-resource-collection>
| <web-resource-name>XHTML</web-resource-name>
| <url-pattern>*.xhtml</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>NONE</role-name>
| </auth-constraint>
| </security-constraint>
| </web-app>
|
components.xml
<core:init jndi-pattern="#{ejbName}/local" debug="true"/>
|
| <core:manager conversation-timeout="120000"
| concurrent-request-timeout="500"
| conversation-id-parameter="cid"/>
|
| <core:ejb-transaction-listener/>
|
| <security:identity authenticate-method="#{authenticator.authenticate}"/>
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057024#4057024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057024
More information about the jboss-user
mailing list