0

Problems with ZK loader

asked 2010-04-26 13:23:19 +0800

riboriori gravatar image riboriori
114 1

updated 2010-04-26 13:24:56 +0800

I have a seam application (generated via sem-gen) with zk; i have integration with zkcdi; appserver: jboss 5.1
The problem is when i start jboss (no problem) when i write url on browser (http://localhost:8080/ProvaSeamZK/prova.zul)
the page is inaccessible.
My web.xml:

<?xml version="1.0" ?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
   version="2.5">


	<!-- Configurazione framework ZK -->
  	<listener>
    	<description>Used to clean up when a session is destroyed</description>
    	<display-name>ZK Session Cleaner</display-name>
    	<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
  	</listener>

  	<servlet>
    	<description>ZK loader for ZUML pages</description>
    	<servlet-name>zkLoader</servlet-name>
    	<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
    	<init-param>
      		<param-name>update-uri</param-name>
      		<param-value>/zkau</param-value>
    	</init-param>
    	<load-on-startup>1</load-on-startup>
  	</servlet>
  	<servlet-mapping>
    	<servlet-name>zkLoader</servlet-name>
    	<url-pattern>*.zul</url-pattern>
  	</servlet-mapping>
  	<servlet-mapping>
    	<servlet-name>zkLoader</servlet-name>
    	<url-pattern>*.zhtml</url-pattern>
  	</servlet-mapping>

  	<servlet>
    	<description>The asynchronous update engine for ZK</description>
    	<servlet-name>auEngine</servlet-name> 
    	<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
  	</servlet>
  	<servlet-mapping>
    	<servlet-name>auEngine</servlet-name>
    	<url-pattern>/zkau/*</url-pattern>
  	</servlet-mapping>

	<!-- Weld Servlet Listener-->
	
	<listener>
   		<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
	</listener>   
 
	<listener>
   		<listener-class>org.jboss.weld.el.WeldELContextListener</listener-class>
	</listener>	
  
   <!-- RichFaces -->

   <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>classic</param-value>
   </context-param>

   <!-- Suppress spurious stylesheets -->
   	
   <context-param>
      <param-name>org.richfaces.CONTROL_SKINNING</param-name>
      <param-value>disable</param-value>
   </context-param>

   <context-param>
      <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
      <param-value>disable</param-value>
   </context-param>

   <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
   
   <context-param>
      <param-name>org.richfaces.LoadStyleStrategy</param-name>
      <param-value>ALL</param-value>
   </context-param>

   <context-param>
      <param-name>org.richfaces.LoadScriptStrategy</param-name>
      <param-value>ALL</param-value>
   </context-param>
   
   <!-- Seam -->

   <listener>
      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
   </listener>

   <!-- GESTORE DELLE ECCEZIONI DI SEAM -->	
   <filter>
      <filter-name>Seam Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
   </filter>

   <filter-mapping>
      <filter-name>Seam Filter</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>
   <!-- FINE GESTORE DELLE ECCEZIONI DI SEAM -->
   
   
   		
   <servlet>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
   </servlet>

   <servlet-mapping>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <url-pattern>/seam/resource/*</url-pattern>
   </servlet-mapping>

   <!-- Facelets development mode (disable in production) -->

   <context-param>
      <param-name>facelets.DEVELOPMENT</param-name>
      <param-value>@debug@</param-value>
   </context-param>

   <!-- JSF -->
  
   <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
   </context-param>
	
   <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>

   <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/>
   </security-constraint>

   <!-- uncomment <ejb-local-ref> entries when deploying to GlassFish and (optionally) JBoss AS 5 -->
   <!--
   <ejb-local-ref>
      <ejb-ref-name>ProvaSeamZK/AuthenticatorBean/local</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home/>
      <local>it.unipa.cuc.seamzk.action.Authenticator</local>
   </ejb-local-ref>
   -->

   <!-- Add entries for each EJB session bean which is also a Seam component (not required on JBoss AS) -->

   <persistence-unit-ref>
      <persistence-unit-ref-name>ProvaSeamZK/pu</persistence-unit-ref-name>
      <persistence-unit-name>../ProvaSeamZK.jar#ProvaSeamZK</persistence-unit-name>
      <!-- The relative reference doesn't work on GlassFish. Instead, set the <persistence-unit-name> to "ProvaSeamZK",
           package persistence.xml in the WAR, and add a <jar-file> element in persistence.xml with value "../../ProvaSeamZK.jar".
      <persistence-unit-name>ProvaSeamZK</persistence-unit-name>
      -->
   </persistence-unit-ref>
    <!-- 
	<resource-env-ref>
		<resource-env-ref-name>BeanManager</resource-env-ref-name>
		<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
	</resource-env-ref>
	  -->
</web-app>

This is the last part of the log on startup of jboss

20:21:00,312 INFO   20:21:00.312  INFO  org.jboss.weld.Version - WELD-000900 1.0.1 (Final)
20:21:00,359 INFO   Initializing Mojarra (1.2_12-b01-FCS) for context '/ProvaSeamZK'
20:21:01,500 INFO   20:21:01.500  INFO  org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000103 Enabled alternatives for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: [] []
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000104 Enabled decorator types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: []
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000105 Enabled interceptor types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: []
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000103 Enabled alternatives for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: [] []
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000104 Enabled decorator types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: []
20:21:02,671 INFO   20:21:02.671  DEBUG org.jboss.weld.Bootstrap - WELD-000105 Enabled interceptor types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.RequestScoped, interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.ApplicationScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ConversationScoped]
Registered beans: 1
Specialized beans: 0
: []
20:21:03,109 INFO   20:21:03.109  INFO  org.reflections.Reflections - Reflections took 31 ms to scan 1 urls, producing 0 keys and 0 values 
20:21:03,359 INFO   20:21:03.359  DEBUG org.jboss.weld.Reflection - WELD-000602 interface javax.enterprise.inject.Default is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,359 INFO   20:21:03.359  DEBUG org.jboss.weld.Reflection - WELD-000602 interface javax.enterprise.context.RequestScoped is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,359 INFO   20:21:03.359  DEBUG org.jboss.weld.Reflection - WELD-000601 interface javax.inject.Named is missing @Target
20:21:03,421 INFO   20:21:03.421  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ManagedBean-class org.jboss.weld.conversation.ConversationImpl
20:21:03,437 INFO   20:21:03.437  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in implicit javax.event.Event bean
20:21:03,437 INFO   20:21:03.437  DEBUG org.jboss.weld.Reflection - WELD-000602 interface javax.enterprise.context.SessionScoped is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,437 INFO   20:21:03.437  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ManagedBean-class org.jboss.weld.conversation.ServletConversationManager
20:21:03,453 INFO   20:21:03.453  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ProducerMethod-org.jboss.weld.conversation.ServletConversationManager.method getConversationIdName()
20:21:03,453 INFO   20:21:03.453  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ManagedBean-class org.jboss.weld.conversation.NumericConversationIdGenerator
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in implicit javax.inject.Instance bean
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-NewManagedBean-class org.jboss.weld.conversation.ConversationImpl
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in javax.inject.manager.InjectionPoint bean
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ProducerMethod-org.jboss.weld.conversation.ServletConversationManager.method getConversationTimeoutInMilliseconds()
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-NewManagedBean-class org.jboss.weld.conversation.ServletConversationManager
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ProducerMethod-org.jboss.weld.conversation.ServletConversationManager.method getConversationConcurrentAccessTimeout()
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-NewManagedBean-class org.jboss.weld.conversation.NumericConversationIdGenerator
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Reflection - WELD-000602 interface javax.enterprise.inject.Produces is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ManagedBean-class org.jboss.weld.servlet.HttpSessionManager
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-NewManagedBean-class org.jboss.weld.servlet.HttpSessionManager
20:21:03,468 INFO   20:21:03.468  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-weld-ProducerMethod-org.jboss.weld.servlet.HttpSessionManager.method getSession()
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000108 Decorator: org.jboss.weld.bean-flat-Decorator-org.jboss.weld.environment.se.threading.RunnableDecorator
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Reflection - WELD-000602 interface javax.enterprise.context.ApplicationScoped is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Reflection - WELD-000602 interface org.jboss.weld.environment.se.bindings.Parameters is not declared @Target(TYPE, METHOD) or @Target(TYPE)
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ManagedBean-org.jboss.weld.environment.se.beans.ParametersFactory[@javax.enterprise.context.ApplicationScoped()]{org.jboss.weld.environment.se.beans.ParametersFactory.getArgs[@javax.enterprise.inject.Produces()@org.jboss.weld.environment.se.bindings.Parameters()]();org.jboss.weld.environment.se.beans.ParametersFactory.getArgsAsArray[@javax.enterprise.inject.Produces()@org.jboss.weld.environment.se.bindings.Parameters()]();}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in javax.inject.manager.InjectionPoint bean
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ProducerMethod-org.jboss.weld.environment.se.beans.ParametersFactory.method getArgsAsArray()
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-NewManagedBean-org.jboss.weld.environment.se.beans.ParametersFactory[@javax.enterprise.context.ApplicationScoped()]{org.jboss.weld.environment.se.beans.ParametersFactory.getArgs[@javax.enterprise.inject.Produces()@org.jboss.weld.environment.se.bindings.Parameters()]();org.jboss.weld.environment.se.beans.ParametersFactory.getArgsAsArray[@javax.enterprise.inject.Produces()@org.jboss.weld.environment.se.bindings.Parameters()]();}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in implicit javax.inject.Instance bean
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-NewManagedBean-org.jboss.weld.environment.se.ShutdownManager[@javax.enterprise.context.ApplicationScoped()]{}
20:21:03,515 INFO   20:21:03.515  DEBUG o.j.i.util.InterceptionUtils - Method initialize defined on class org.jboss.weld.environment.se.Weld will not be used for interception, since it is not defined according to the specification. It is annotated with @javax.annotation.PostConstruct, but does not have a void return type
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ManagedBean-org.jboss.weld.environment.se.Weld{org.jboss.weld.environment.se.Weld.initialize[@javax.annotation.PostConstruct()]();}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-NewManagedBean-org.jboss.weld.environment.se.beans.InstanceManager{org.jboss.weld.environment.se.beans.InstanceManager.events[@javax.inject.Inject()];org.jboss.weld.environment.se.beans.InstanceManager.instances[@javax.inject.Inject()];}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-NewManagedBean-org.zkoss.zkplus.cdi.ZKComponentProducerMethods{}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-NewManagedBean-org.jboss.weld.environment.se.Weld{org.jboss.weld.environment.se.Weld.initialize[@javax.annotation.PostConstruct()]();}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ManagedBean-org.jboss.weld.environment.se.ShutdownManager[@javax.enterprise.context.ApplicationScoped()]{}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ManagedBean-org.jboss.weld.environment.se.beans.InstanceManager{org.jboss.weld.environment.se.beans.InstanceManager.events[@javax.inject.Inject()];org.jboss.weld.environment.se.beans.InstanceManager.instances[@javax.inject.Inject()];}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ManagedBean-org.zkoss.zkplus.cdi.ZKComponentProducerMethods{}
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: Built-in implicit javax.event.Event bean
20:21:03,515 INFO   20:21:03.515  DEBUG org.jboss.weld.Bootstrap - WELD-000106 Bean: org.jboss.weld.bean-flat-ProducerMethod-org.jboss.weld.environment.se.beans.ParametersFactory.method getArgs()
20:21:03,546 INFO   ZK Weld Extension 1.0RC
20:21:03,546 INFO   20:21:03.546  DEBUG org.jboss.weld.Bootstrap - WELD-000100 Weld initialized. Validating beans
20:21:03,609 INFO   Welcome to Seam 2.2.0.GA
20:21:06,015 WARN   no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
20:21:06,203 INFO   Starting ZK 5.0.1 CE (build: 2010031810)
20:21:06,250 INFO   Loading system default
20:21:07,281 INFO   Parsing jndi:/localhost/ProvaSeamZK/WEB-INF/zk.xml
20:21:08,343 INFO   Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
20:21:08,359 INFO   Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
20:21:08,375 INFO   JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 58s:438ms


my prova.zul:

<zk xmlns="http://www.zkoss.org/2005/zul"
	xmlns:h="http://www.w3.org/1999/xhtml"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">

<window title="a title" border="normal">

 </window>

	
</zk>


but on browser all request on any zul page i got: "web page not available".
Whats wrong??
Please i need an answer!!!

delete flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2010-04-26 14:16:25 +0800

riboriori gravatar image riboriori
114 1

An update; in order to debug the servlet ZK loader (org.zkoss.zk.ui.http.DHtmlLayoutServlet) i make a class:

import java.io.IOException;

import javax.servlet.ServletException;

public class prova extends org.zkoss.zk.ui.http.DHtmlLayoutServlet{
	
	@Override
	protected  void	doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
	{
		
		
		try {
			super.doGet(request, response);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	

}


In web.xml i changed the zkloader definition to:

  	<servlet>
    	<description>ZK loader for ZUML pages</description>
    	<servlet-name>zkLoader</servlet-name>
    	<servlet-class>com.mycompany.mypackage.seamzk.prova</servlet-class>
    	<init-param>
      		<param-name>update-uri</param-name>
      		<param-value>/zkau</param-value>
    	</init-param>
    	<init-param>
    		<param-name>log-level</param-name>
    		<param-value>FINER</param-value>
    	</init-param>
    	<load-on-startup>1</load-on-startup>
  	</servlet>

and then on browser , when i invoke the zul page, on console i get:

21:12:54,062 ERROR  org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: log in [LanguageDefinition: xul/html], [SYS file:/C:/jboss-5.1.0.GA/server/default/tmp/5c4o12-9lgp2e-g8j3b77c-1-g8j3bhe3-w/ProvaSeamZK.ear/ProvaSeamZK.war/prova.zul line 5 col 6]
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:767)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:594)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:861)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:209)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:100)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:194)
21:12:54,062 ERROR  	at org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:92)
21:12:54,062 ERROR  	at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:226)
21:12:54,062 ERROR  	at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:200)
21:12:54,062 ERROR  	at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:133)
21:12:54,062 ERROR  	at org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:130)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:140)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:113)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:230)
21:12:54,062 ERROR  	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159)
21:12:54,062 ERROR  	at it.unipa.cuc.seamzk.model.prova.doGet(prova.java:15)
21:12:54,062 ERROR  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
21:12:54,062 ERROR  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
21:12:54,062 ERROR  	at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
21:12:54,062 ERROR  	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
21:12:54,062 ERROR  	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
21:12:54,062 ERROR  	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
21:12:54,062 ERROR  	at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
21:12:54,062 ERROR  	at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
21:12:54,062 ERROR  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
21:12:54,062 ERROR  	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
21:12:54,062 ERROR  	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
21:12:54,062 ERROR  	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
21:12:54,062 ERROR  	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
21:12:54,062 ERROR  	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
21:12:54,062 ERROR  	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
21:12:54,062 ERROR  	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
21:12:54,062 ERROR  	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
21:12:54,062 ERROR  	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
21:12:54,062 ERROR  	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
21:12:54,062 ERROR  	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
21:12:54,062 ERROR  	at java.lang.Thread.run(Unknown Source)


Please help me.

link publish delete flag offensive edit

answered 2010-04-26 14:19:19 +0800

riboriori gravatar image riboriori
114 1

Another update: there was an error on my zul page. I removed that component; now i got another error:
" org.zkoss.xel.XelException: Cannot locate the BeanManager for JavaEE 6."

link publish delete flag offensive edit

answered 2010-04-26 15:33:08 +0800

riboriori gravatar image riboriori
114 1

Anyone can help me, please?

link publish delete flag offensive edit

answered 2010-04-26 21:26:49 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

updated 2010-04-26 21:27:28 +0800

Hi riboriori,
Lets first try to locate where the problem is. Is it on the Seam side,ZK side or JBoss Weld/ZK CDI side? Can you first try to make Seam work with ZK and then add ZK CDI/Weld support for JBoss? Here is ZK + Seam documentation and here is another one for how to run Weld examples on JBoss.

Also let me know your development stack such as Seam,ZK and JBoss versions so that I can build the same environment here.

Thanks
- Ashish

link publish delete flag offensive edit

answered 2010-04-27 01:45:51 +0800

riboriori gravatar image riboriori
114 1

updated 2010-04-27 01:47:23 +0800

I dont use zkseam, because that library refers to 1.2 version of seam; i use seam 2.2.
I locate the problem. Initally i set log-level of zk-servlet to FINER, but dont work, so i created a derived class of org.zkoss.zk.ui.http.DHtmlLayoutServlet:

	@Override
	protected  void	doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
	{
		
		
		try {
			super.doGet(request, response);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

in this way i intercept the error: "Cannot locate the BeanManager for JavaEE 6." The error is fired at runtinme, when, via browser, i make an http request to a zul page.
This expetion is fired by zkplus;i located the code under class org.zkoss.zkplus.cdi.CDIUtil, the method is getBeanManager, when
tries to lookup beanmanager:

	public static BeanManager getBeanManager() {
		if (_manager != null)
			return _manager;
			
		try {
			final InitialContext initialContext = new InitialContext(); 
		   _manager = (BeanManager) initialContext.lookup("java:comp/env/BeanManager");
		} catch (NamingException e) { // Error getting the home interface
		   throw XelException.Aide.wrap(e, "Cannot locate the BeanManager for JavaEE 6.");
		}
		return _manager;
	}

the problem i think is that BeanManager is'nt under java:/comp/env.
I use:
Seam 2.2
Jboss 5.1
zk 5.01
zkcdi

Thanks for the reply!.
Best regards

link publish delete flag offensive edit

answered 2010-04-27 03:25:02 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi riboriori,
CDI support for JBoss come built-in from 5.2 version(see here). I think your JBoss version does not support CDI OOTB. Are you sure your JBoss server is configured properly for CDI. Try running any Weld examples on your setup and see it they work. Or you try your sample code with JBoss 5.2 or latest version?

Thanks
- Ashish

link publish delete flag offensive edit

answered 2010-04-27 04:35:29 +0800

riboriori gravatar image riboriori
114 1

The problem is that i cant find jboss 5.2. I have search a lot on the net by googoling all possible, but there no access to nigtly build on jboss site.
All that i want is this: use zk as front end and a backend framework wich support for conversations (like seam or weld).
The problem deriving using zk as pure backend is that all calls from zul pages on seam controllers (actions) does not activate seam injection , outjection and so on.
So i changed my strategy for using weld for this.
Have u some suggestion?

link publish delete flag offensive edit

answered 2010-04-27 05:07:52 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi riboriori,
at the moment ZK CDI is tested to work with Weld RI for CDI. ZK CDI was not developed to work with Seam. In fact I'm not very sure if Seam has CDI capabilities(may be DI but not all). Also ZK CDI doesn't support conversation as of now. It will sooner or later though. You are welcome to suggest any of your ideas regarding how you would like conversations to be used in ZK + Java EE 6 application.

Thanks
- Ashish

link publish delete flag offensive edit

answered 2010-08-20 08:18:41 +0800

WilliamMo gravatar image WilliamMo
3

updated 2010-08-20 08:19:07 +0800

Hi riboriori,

To solve the error that like " org.zkoss.xel.XelException: Cannot locate the BeanManager for JavaEE 6.", only need to add
<resource-env-ref>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
</resource-env-ref>
into web.xml

link publish delete flag offensive edit

answered 2011-02-05 14:55:34 +0800

nmpallas gravatar image nmpallas
115 4
http://nmpallas.wordpress...

Sorry to inform you William but that's not sufficient.If you add this in your web.xml and you deploy the war in JBoss 6.0 As you will get also an exception.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-04-26 13:23:19 +0800

Seen: 1,356 times

Last updated: Apr 13 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More