using visibleOnUserRole attribute dynamical

2007-06-14 Thread Raymund Nickel
Hi,

 

when you use the tomahawk library, most of the tags have two nice
attributes to handle userroles (visibleOnUserRole and enabledOnUserRole)
.

I want to use it in a NavigationMenuItem. If you build that item in a
static way with a tag, its no problem. But if you want build it in a
dynamical way, I cant find the method to declare this attribute. Is it
possible to do that? How...?

 

Thx a lot,

cya



Re: Unsupported component-family/renderer-type: javax.faces.ViewRoot/javax.faces.Text

2007-05-28 Thread Raymund Nickel
Raymund Nickel schrieb:
 Hi,
 i posted this problem a few weeks ago, but nobody answered.
 Now i try it again with some more informations.
 
 I have a problem with jscook menu. The first time im opening the
 mainpage which is containing the jscook menu, everything is fine. But
 when im hitting a menu item im getting the following error:
 
 javax.servlet.ServletException: ServletException in
 '/WEB-INF/tiles/main-layout.jsp': ServletException in
 '/WEB-INF/tiles/menu.jsp': jscook menu is not embedded in a form.
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
   
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
 ...
 
 
 This error sounds easy to fix... jscook menu is not embedded in a
 form., but the jscook already is embedded in a form and the error still
 apears.
 
 %@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
 %@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
 div
   h:form
   t:jscookMenu id=mainMenu layout=hbr theme=ThemeOffice
   t:navigationMenuItems id=navItems
 value=#{mainMenuHandler.panelNavigationItems} /
   /t:jscookMenu
   /h:form
 /div
 
 
 There is a warning before the error message, in this case when im
 hitting the user-button to load the user.jsp:
 
 24.05.2007 22:20:49 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl
 getRenderer
 WARNUNG: Unsupported component-family/renderer-type:
 javax.faces.ViewRoot/javax.faces.Text
 24.05.2007 22:20:49 org.apache.catalina.core.ApplicationContext log
 INFO: No Renderer found for component {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /user.jsp]}
 (component-family=javax.faces.ViewRoot, renderer-type=javax.faces.Text)
 24.05.2007 22:20:49 javax.faces.component.UIComponentBase getRenderer
 
 
 Im using tiles and tomahawk 1.1.5
 
 I hope someone can help me.
 Thanks a lot,
 ray
 

Nobody has an idea? Im really stucked in this Problem. I dont understand
why the renderer couldnt be found on the next page... Maybe it has
something to to with tiles.

ray


Re: Unsupported component-family/renderer-type: javax.faces.ViewRoot/javax.faces.Text

2007-05-28 Thread Raymund Nickel
Bruno Aranda schrieb:
 Do you have the view tags in your page?
 
 Cheers,
 
 Bruno
 
 On 28/05/07, Raymund Nickel [EMAIL PROTECTED] wrote:
 Raymund Nickel schrieb:
  Hi,
  i posted this problem a few weeks ago, but nobody answered.
  Now i try it again with some more informations.
 
  I have a problem with jscook menu. The first time im opening the
  mainpage which is containing the jscook menu, everything is fine. But
  when im hitting a menu item im getting the following error:
 
  javax.servlet.ServletException: ServletException in
  '/WEB-INF/tiles/main-layout.jsp': ServletException in
  '/WEB-INF/tiles/menu.jsp': jscook menu is not embedded in a form.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
   
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

  ...
 
 
  This error sounds easy to fix... jscook menu is not embedded in a
  form., but the jscook already is embedded in a form and the error
 still
  apears.
 
  %@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
  %@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
  %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
  div
h:form
t:jscookMenu id=mainMenu layout=hbr
 theme=ThemeOffice
t:navigationMenuItems id=navItems
  value=#{mainMenuHandler.panelNavigationItems} /
/t:jscookMenu
/h:form
  /div
 
 
  There is a warning before the error message, in this case when im
  hitting the user-button to load the user.jsp:
 
  24.05.2007 22:20:49 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl
  getRenderer
  WARNUNG: Unsupported component-family/renderer-type:
  javax.faces.ViewRoot/javax.faces.Text
  24.05.2007 22:20:49 org.apache.catalina.core.ApplicationContext log
  INFO: No Renderer found for component {Component-Path : [Class:
  javax.faces.component.UIViewRoot,ViewId: /user.jsp]}
  (component-family=javax.faces.ViewRoot, renderer-type=javax.faces.Text)
  24.05.2007 22:20:49 javax.faces.component.UIComponentBase getRenderer
 
 
  Im using tiles and tomahawk 1.1.5
 
  I hope someone can help me.
  Thanks a lot,
  ray
 

 Nobody has an idea? Im really stucked in this Problem. I dont understand
 why the renderer couldnt be found on the next page... Maybe it has
 something to to with tiles.

 ray

 
Hi Bruno,

thx a lot!! i finally solved it... You brought me in the right
direction. The view-tags where missing in the spezific tile-extensions.
How could you read that out of the Error-/Warning message?

ray


Unsupported component-family/renderer-type: javax.faces.ViewRoot/javax.faces.Text

2007-05-24 Thread Raymund Nickel
Hi,
i posted this problem a few weeks ago, but nobody answered.
Now i try it again with some more informations.

I have a problem with jscook menu. The first time im opening the
mainpage which is containing the jscook menu, everything is fine. But
when im hitting a menu item im getting the following error:

javax.servlet.ServletException: ServletException in
'/WEB-INF/tiles/main-layout.jsp': ServletException in
'/WEB-INF/tiles/menu.jsp': jscook menu is not embedded in a form.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
...


This error sounds easy to fix... jscook menu is not embedded in a
form., but the jscook already is embedded in a form and the error still
apears.

%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
div
h:form
t:jscookMenu id=mainMenu layout=hbr theme=ThemeOffice
t:navigationMenuItems id=navItems
value=#{mainMenuHandler.panelNavigationItems} /
/t:jscookMenu
/h:form
/div


There is a warning before the error message, in this case when im
hitting the user-button to load the user.jsp:

24.05.2007 22:20:49 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl
getRenderer
WARNUNG: Unsupported component-family/renderer-type:
javax.faces.ViewRoot/javax.faces.Text
24.05.2007 22:20:49 org.apache.catalina.core.ApplicationContext log
INFO: No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /user.jsp]}
(component-family=javax.faces.ViewRoot, renderer-type=javax.faces.Text)
24.05.2007 22:20:49 javax.faces.component.UIComponentBase getRenderer


Im using tiles and tomahawk 1.1.5

I hope someone can help me.
Thanks a lot,
ray


problem jscook menu is not embedded in a form.

2007-05-05 Thread Raymund Nickel
Hi,
i have a problem with jscook menu. The first time im opening the
mainpage which is containing the jscook menu, everything is fine. But
when im hitting a menu item im getting the following error:

javax.servlet.ServletException: ServletException in
'/WEB-INF/tiles/main-layout.jsp': ServletException in
'/WEB-INF/tiles/menu.jsp': jscook menu is not embedded in a form.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
...


This error sounds easy to fix... jscook menu is not embedded in a
form., but the jscook already is embedded in a form and the error still
apears.

%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
div
h:form
t:jscookMenu id=mainMenu layout=hbr theme=ThemeOffice
t:navigationMenuItems id=navItems
value=#{mainMenuHandler.panelNavigationItems} /
/t:jscookMenu
/h:form
/div

Im using tiles and tomahawk 1.1.5
Maybe someone has an idea how to fix this error.
Thanks for help,
ray


jscookMenu cmDraw is not defined

2007-04-21 Thread Raymund Nickel
Hi,
i have a problem with tomahawks jscookMenu. When i open the page, where
a jscookMenu should be shown, it doesnt appear and im getting the
Javascript error message: cmDraw is not defined.

my filter in the web.xml looks like:

filter
filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
/description
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
...
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup2/load-on-startup
/servlet

servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
/servlet-mapping


I also created the directory /faces/myFacesExtensionResource/, which
maybe is not necessary. I?m using tomahawk-1.1.5.jar.
I hope someone can help me.

thx a lot,
cya


Problem with Tiles Can't get definitions factory from context

2007-02-25 Thread Raymund Nickel
Hi,
i have a problem with Tiles. The application deploys without an error,
but as soon i try to open the index.jsp i get the error: Can't get
definitions factory from context. The error says, that it has something
to do with the tag tiles:insert, but i cant?t find the reason.

Im using a JBoss 4.0.5, but without using the provided myFaces-libs. The
jar?s i use are: commons-beanutils-1.7.0.jar, commons-codec-1.3.jar,
commons-collections-3.1.jar, commons-digester-1.6.jar,
commons-lang-2.1.jar, jstl-1.1.0.jar, myfaces-api-1.1.4.jar,
myfaces-impl-1.1.4.jar, struts-tiles-1.3.5.jar, tomahawk-1.1.3.jar.

Here are the web.xml, tiles.xml, faces-config.xml, index.jsp, main.jsp,
header.jsp und the full error message.


web.xml:

?xml version=1.0?

!DOCTYPE web-app PUBLIC
  -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
context-param
  param-nametiles-definitions/param-name
  param-value/WEB-INF/tiles.xml/param-value
/context-param

context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param

context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
/context-param

context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param

context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
/context-param

context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param

context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
/context-param



!-- WelcomeFile Filter --
!--
filter
filter-nameWelcomeFile Filter/filter-name

filter-classorg.apache.myfaces.webapp.filter.WelcomeFileFilter/filter-class
description
Due to the manner in which the JSP / servlet lifecycle
functions, it is not currently possible to specify default
welcome files for a web application and map them to the
MyFacesServlet.  Normally they will be mapped to the
default servlet for the JSP container.  To offset this
shortcoming, we utilize a servlet Filter which examines
the URI of all incoming requests.
/description
/filter
--

!-- JavaScriptDetector Filter --

!-- Extensions Filter --
filter

filter-nameextensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
/filter


!-- Filter Mappings --

!-- see MyFaces Filter above for a description --

filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.jsf/url-pattern
/filter-mapping
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping

listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener


!-- Faces Servlet --
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet

!-- FacesServlet Mapping --

!-- virtual path mapping --
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/gbase4j/*/url-pattern
/servlet-mapping

!-- Welcome files --
welcome-file-list
welcome-fileindex.jsf/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
/welcome-file-list

/web-app


tiles.xml:

?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration//EN
   http://jakarta.apache.org/struts/dtds/tiles-config.dtd;

tiles-definitions
definition name=layout.main path=/main.jsp 
put name=header value=/header.jsp /
/definition
/tiles-definitions


faces-config.xml:

?xml version=1.0 encoding=UTF-8?

!DOCTYPE faces-config PUBLIC
-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN
http://java.sun.com/dtd/web-facesconfig_1_1.dtd;

faces-config
render-kit
render-kit-class
org.apache.myfaces.renderkit.html.HtmlRenderKitImpl
/render-kit-class
/render-kit

application
view-handlerorg.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl/view-handler

Re: problem jboss 4.0.5 + myfaces/tomahawk + tiles

2007-02-12 Thread Raymund Nickel
Hi Alexey,
im using myfaces-api-1.1.4, myfaces-impl-1.1.4 and tomahawk-1.1.3.
I tried it out and replaced tomahawk-1.1.3 by tomahawk-1.1.4, but with
the same result.

When i take out the declaration of the ViewHandler
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
im getting the error:
org.apache.jasper.JasperException:
The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved
in either web.xml or the jar files deployed with this application
...

Mayby it has something to do with the other problem? But should tiles be
implemented in the tomahawk.jar?


Alexey Kakunin schrieb:
 What version of MyFaces do you use?
 As I know version 1.1.5-SNAPSHOT has problem with JBoss - version
 1.1.4works fine.
 
 2007/2/11, Raymund Nickel [EMAIL PROTECTED]:

 Hi,
 i have a problem with using
 - jboss 4.0.5
 - myfaces/tomahawk
 - tiles

 I dont deploy any extra jar´s, all necessary ones should be provide by
 the jboss, right? When i deploy my application to the jboss, i always
 get the following error. I tried to find some solutions at the internet,
 but without success. I hope someone can help me..
 After the error-message, i also posted my web.xml and faces-config.xml


 ERROR [[/]] Exception sending context initialized event to listener
 instance of class org.apache.myfaces.webapp.StartupServletContextListener
 java.lang.NoClassDefFoundError:
 org/apache/struts/tiles/DefinitionsFactoryException
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
 at java.lang.Class.getConstructor0(Unknown Source)
 at java.lang.Class.getConstructor(Unknown Source)
 at
 org.apache.myfaces.config.FacesConfigurator.getApplicationObject(
 FacesConfigurator.java:548)
 at
 org.apache.myfaces.config.FacesConfigurator.configureApplication(
 FacesConfigurator.java:473)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(
 FacesConfigurator.java:141)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.initFaces(
 StartupServletContextListener.java:69)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized

 (StartupServletContextListener.java:52)
 at
 org.apache.catalina.core.StandardContext.listenerStart(
 StandardContext.java:3763)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java

 :759)
 at org.apache.catalina.core.ContainerBase.addChild(
 ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(
 StandardHost.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(
 RawDynamicInvoker.java:164)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
 :659)
 at org.apache.catalina.core.StandardContext.init(
 StandardContext.java:5052)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(
 RawDynamicInvoker.java:164)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
 :659)
 at
 org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(
 TomcatDeployer.java:297)
 at
 org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java
 :103)
 at org.jboss.web.AbstractWebDeployer.start(
 AbstractWebDeployer.java:371)
 at org.jboss.web.WebModule.startModule(WebModule.java:83)
 at org.jboss.web.WebModule.startService(WebModule.java:61)
 at
 org.jboss.system.ServiceMBeanSupport.jbossInternalStart(
 ServiceMBeanSupport.java:289)
 at
 org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(
 ServiceMBeanSupport.java:245)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
 ReflectedDispatcher.java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94

Re: problem jboss 4.0.5 + myfaces/tomahawk + tiles

2007-02-12 Thread Raymund Nickel
I finally solved my problem. I had to deploy struts.jar... i guess im
still a newbie!
thx for help

Raymund Nickel schrieb:
 Hi Alexey,
 im using myfaces-api-1.1.4, myfaces-impl-1.1.4 and tomahawk-1.1.3.
 I tried it out and replaced tomahawk-1.1.3 by tomahawk-1.1.4, but with
 the same result.
 
 When i take out the declaration of the ViewHandler
 org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
 im getting the error:
 org.apache.jasper.JasperException:
 The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved
 in either web.xml or the jar files deployed with this application
 ...
 
 Mayby it has something to do with the other problem? But should tiles be
 implemented in the tomahawk.jar?
 
 
 Alexey Kakunin schrieb:
 What version of MyFaces do you use?
 As I know version 1.1.5-SNAPSHOT has problem with JBoss - version
 1.1.4works fine.

 2007/2/11, Raymund Nickel [EMAIL PROTECTED]:
 Hi,
 i have a problem with using
 - jboss 4.0.5
 - myfaces/tomahawk
 - tiles

 I dont deploy any extra jar´s, all necessary ones should be provide by
 the jboss, right? When i deploy my application to the jboss, i always
 get the following error. I tried to find some solutions at the internet,
 but without success. I hope someone can help me..
 After the error-message, i also posted my web.xml and faces-config.xml


 ERROR [[/]] Exception sending context initialized event to listener
 instance of class org.apache.myfaces.webapp.StartupServletContextListener
 java.lang.NoClassDefFoundError:
 org/apache/struts/tiles/DefinitionsFactoryException
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
 at java.lang.Class.getConstructor0(Unknown Source)
 at java.lang.Class.getConstructor(Unknown Source)
 at
 org.apache.myfaces.config.FacesConfigurator.getApplicationObject(
 FacesConfigurator.java:548)
 at
 org.apache.myfaces.config.FacesConfigurator.configureApplication(
 FacesConfigurator.java:473)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(
 FacesConfigurator.java:141)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.initFaces(
 StartupServletContextListener.java:69)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized

 (StartupServletContextListener.java:52)
 at
 org.apache.catalina.core.StandardContext.listenerStart(
 StandardContext.java:3763)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java

 :759)
 at org.apache.catalina.core.ContainerBase.addChild(
 ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(
 StandardHost.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(
 RawDynamicInvoker.java:164)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
 :659)
 at org.apache.catalina.core.StandardContext.init(
 StandardContext.java:5052)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(
 RawDynamicInvoker.java:164)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
 :659)
 at
 org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(
 TomcatDeployer.java:297)
 at
 org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java
 :103)
 at org.jboss.web.AbstractWebDeployer.start(
 AbstractWebDeployer.java:371)
 at org.jboss.web.WebModule.startModule(WebModule.java:83)
 at org.jboss.web.WebModule.startService(WebModule.java:61)
 at
 org.jboss.system.ServiceMBeanSupport.jbossInternalStart(
 ServiceMBeanSupport.java:289)
 at
 org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(
 ServiceMBeanSupport.java:245)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.jboss.mx.interceptor.ReflectedDispatcher.invoke

problem jboss 4.0.5 + myfaces/tomahawk + tiles

2007-02-11 Thread Raymund Nickel
Hi,
i have a problem with using
- jboss 4.0.5
- myfaces/tomahawk
- tiles

I dont deploy any extra jar´s, all necessary ones should be provide by
the jboss, right? When i deploy my application to the jboss, i always
get the following error. I tried to find some solutions at the internet,
but without success. I hope someone can help me..
After the error-message, i also posted my web.xml and faces-config.xml


ERROR [[/]] Exception sending context initialized event to listener
instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError:
org/apache/struts/tiles/DefinitionsFactoryException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at
org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:548)
at
org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:473)
at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:69)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at