[JBoss Seam] - seam deploy hangs on jboss 4.2
by kgoedert
Hi,
I´m trying to deploy an application with seam 2 in jboss 4.2.
The deploy hangs when tomcat is about to start. What may be causing the problem? I had this application being deployed correctly with seam 1.2 and jboss 4.0.5.
Here is my web.xml
--------------------
<web-app>
sig
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/conf/faces-config.xml,/WEB-INF/conf/navigation.xml
</param-value>
Comma separated list of URIs of (additional) faces config
files. (e.g. /WEB-INF/my-config.xml) See JSF 1.0 PRD2,
10.3.2
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
State saving method: "client" or "server" (= default) See
JSF Specification 2.5.2
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
This parameter tells MyFaces if javascript code should be
allowed in the rendered HTML output. If javascript is
allowed, command_link anchors will have javascript code that
submits the corresponding form. If javascript is not
allowed, the state saving info and nested parameters will be
added as url parameters. Default: "true"
</context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
If true, rendered HTML code will be formatted, so that it is
"human readable". i.e. additional line separators and
whitespace will be written, that do not influence the HTML
code. Default: "true"
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
If true, a javascript function will be rendered that is able
to restore the former vertical scroll on every request.
Convenient feature if you have pages with long lists and you
do not want the browser page to always jump to the top if
you trigger a link or button action that stays on the same
page. Default: "false"
</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>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>
/WEB-INF/conf/myComponents.taglib.xml
</param-value>
</context-param>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener-class>
org.jboss.seam.servlet.SeamListener
</listener-class>
<!-- JSF -->
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>
org.jboss.seam.servlet.ResourceServlet
</servlet-class>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.sig</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
And this is my components.xml
------------------------------------
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:drools="http://jboss.com/products/seam/drools"
xmlns:web="http://jboss.com/products/seam/web"
xsi:schemaLocation=
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
<core:init jndi-pattern="sig/#{ejbName}/local"/>
<core:ejb installed="false"/>
<core:Jbpm>
<core:process-definitions>
ticketProcess.jpdl.xml
</core:process-definitions>
<core:process-definitions>
request/request.jpdl.xml
</core:process-definitions>
</core:Jbpm>
<drools:rule-base name="securityRules">
<drools:rule-files>
/security.drl
</drools:rule-files>
</drools:rule-base>
<security:identity authenticate-method="#{authenticator.authenticate}"/>
true
<web:ajax4jsf-filter force-parser="true"
enable-cache="true"
log4j-init-file="custom-log4j.xml"
url-pattern="*.seam"/>
No error messages are presented. The deploy just hangs.
Can anybody help?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065145#4065145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065145
18Â years, 11Â months
[Installation, Configuration & DEPLOYMENT] - Re: Sharing wars between virtual hosts
by jaikiran
anonymous wrote : In JBoss, is there a JNDI context for each web context
Are you looking for "env-entry" for each web context, in which case each of the web-context will have the entry in its own java:/comp/env namespace.
More details about env-entry can be found in the dtd of web.xml at http://java.sun.com/dtd/web-app_2_3.dtd:
<!--
| The env-entry element contains the declaration of a web application's
| environment entry. The declaration consists of an optional
| description, the name of the environment entry, and an optional
| value. If a value is not specified, one must be supplied
| during deployment.
| -->
| <!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
| env-entry-type)>
|
| <!--
| The env-entry-name element contains the name of a web applications's
| environment entry. The name is a JNDI name relative to the
| java:comp/env context. The name must be unique within a web application.
|
| Example:
|
| <env-entry-name>minAmount</env-entry-name>
|
| Used in: env-entry
| -->
| <!ELEMENT env-entry-name (#PCDATA)>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065131#4065131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065131
18Â years, 11Â months