voyent
JBoss 4.2.0GA Integration  XML
Forum Index -> General Help
Author Message
tommy.noel@Acxiom.com

Joined: 12/Mar/2007 00:00:00
Messages: 6
Offline


Ok I need some help. Here is the basic problem I am having. I am trying to upgrade my version of JBoss and my version of ICEfaces.

This is what I think I want, but if this doesn’t work please anybody let me know what I am doing wrong. I want to use.
JBoss 4.2.0GA
ICEfaces-1.6.0-DR4
myfaces-core-1.1.5 (?)

I am pretty sure the problem I am having is some type of packaging issue.

1) First, I pretty much had things working with JBoss 4.0.5 and ICEfaces-1.5.3. Well I might have had some packaging problems as well, but my simple app did come up with out any errors.

2) After I got JBoss 4.2 up and running I tried to deploy my app to it and received the following error.
10:01:26,229 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW 1 beforePhase.
java.lang.NullPointerException
at com.sun.faces.lifecycle.ELResolverInitPhaseListener.beforePhase(ELResolverInitPhaseListener.java:100)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:85)
......
10:01:26,971 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE 6 beforePhase.
java.lang.NullPointerException
at com.sun.faces.lifecycle.ELResolverInitPhaseListener.beforePhase(ELResolverInitPhaseListener.java:100)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:126)
at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:125)
.......
10:01:42,951 ERROR [PropertyUtils] Method invocation failed.
java.lang.IllegalArgumentException: argument type mismatch
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.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
......


3) Which led me to the following two posts:
http://www.icefaces.org/JForum/posts/list/4549.page
http://www.icefaces.org/JForum/posts/list/4573.page

4) I just tried to deploy the component-showcase.war file and got the follow warn:
MyFaces JSF implementation found! This version of JBoss AS ships with the java.net implementation of JSF. There are known issues when mixing JSF implementations. This warning does not apply to MyFaces component libraries such as Tomahawk. However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation. See the JBoss wiki for more details.

5) Which led me to this wiki entry:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces


In my war I have
\WEB-INF\lib\antlr-2.7.6.jar
\WEB-INF\lib\antlr-3.0ea8.jar
\WEB-INF\lib\backport-util-concurrent.jar
\WEB-INF\lib\commons-beanutils-1.7.0.jar
\WEB-INF\lib\commons-codec-1.3.jar
\WEB-INF\lib\commons-collections-3.1.jar
\WEB-INF\lib\commons-digester-1.6.jar
\WEB-INF\lib\commons-el-1.0.jar
\WEB-INF\lib\commons-lang-2.1.jar
\WEB-INF\lib\commons-logging-1.0.4.jar
\WEB-INF\lib\commons-logging.jar
\WEB-INF\lib\drools-compiler-3.0.6.jar
\WEB-INF\lib\drools-core-3.0.6.jar
\WEB-INF\lib\drools-decisiontables-3.0.6.jar
\WEB-INF\lib\drools-jsr94-3.0.6.jar
\WEB-INF\lib\el-api.jar
\WEB-INF\lib\icefaces-comps.jar
\WEB-INF\lib\icefaces.jar
\WEB-INF\lib\jasper-compiler-jdt.jar
\WEB-INF\lib\jasper-compiler.jar
\WEB-INF\lib\jsf-api.jar
\WEB-INF\lib\jsf-impl.jar
\WEB-INF\lib\jsp-api.jar
\WEB-INF\lib\jstl-1.1.0.jar
\WEB-INF\lib\krysalis-jCharts-1.0.0-alpha-1.jar
\WEB-INF\lib\myfaces-api-1.1.5.jar
\WEB-INF\lib\myfaces-impl-1.1.5.jar
\WEB-INF\lib\ojdbc14.jar
\WEB-INF\lib\standard.jar
\WEB-INF\lib\stringtemplate-2.3b6.jar
\WEB-INF\lib\xercesImpl.jar
\WEB-INF\lib\xml-apis.jar


In my JBoss \jboss-4.2.0\server\default\lib
\default\lib\activation.jar
\default\lib\alerts.jar
\default\lib\antlr.jar
\default\lib\autonumber-plugin.jar
\default\lib\bcel.jar
\default\lib\bindingservice-plugin.jar
\default\lib\bsf.jar
\default\lib\bsh-deployer.jar
\default\lib\bsh.jar
\default\lib\cglib.jar
\default\lib\commons-codec.jar
\default\lib\commons-collections.jar
\default\lib\commons-httpclient.jar
\default\lib\commons-logging.jar
\default\lib\dom4j.jar
\default\lib\drools-core-3.0.6.jar
\default\lib\ejb3-persistence.jar
\default\lib\el-api.jar
\default\lib\hibernate-annotations.jar
\default\lib\hibernate-entitymanager.jar
\default\lib\hibernate3.jar
\default\lib\javassist.jar
\default\lib\jaxen.jar
\default\lib\jboss-cache-jdk50.jar
\default\lib\jboss-common-jdbc-wrapper.jar
\default\lib\jboss-ejb3x.jar
\default\lib\jboss-hibernate.jar
\default\lib\jboss-j2ee.jar
\default\lib\jboss-jaxrpc.jar
\default\lib\jboss-jca.jar
\default\lib\jboss-jsr77.jar
\default\lib\jboss-jsr88.jar
\default\lib\jboss-management.jar
\default\lib\jboss-monitoring.jar
\default\lib\jboss-remoting-int.jar
\default\lib\jboss-remoting.jar
\default\lib\jboss-saaj.jar
\default\lib\jboss-serialization.jar
\default\lib\jboss-srp.jar
\default\lib\jboss-transaction.jar
\default\lib\jboss-vfs.jar
\default\lib\jboss.jar
\default\lib\jbossjta-integration.jar
\default\lib\jbossjta.jar
\default\lib\jbosssx.jar
\default\lib\jbossts-common.jar
\default\lib\jbossws-integration.jar
\default\lib\jgroups.jar
\default\lib\jmx-adaptor-plugin.jar
\default\lib\jnpserver.jar
\default\lib\joesnmp.jar
\default\lib\jpl-pattern.jar
\default\lib\jpl-util.jar
\default\lib\jsp-api.jar
\default\lib\log4j-snmp-appender.jar
\default\lib\log4j.jar
\default\lib\logging-monitor.jar
\default\lib\mail-plugin.jar
\default\lib\mail.jar
\default\lib\ojdbc14.jar
\default\lib\properties-plugin.jar
\default\lib\quartz.jar
\default\lib\scheduler-plugin-example.jar
\default\lib\scheduler-plugin.jar
\default\lib\servlet-api.jar
\default\lib\xmlentitymgr.jar



I put my war in \jboss-4.2.0\server\default\deploy\.

I didn’t change anything in my JBoss \jboss-4.2.0\server\default\deploy\jboss-web.deployer directory.



Basically what I tried was copying all the jars in the component-showcase war file and put them in my war file. I also copied the web.xml file as well. Next I downloaded the myfaces-core-1.1.5 files and put them in my war and in the \jboss-4.2.0\server\default\lib dir as well.


Could someone let me know the proper packaging structure of a JSF application using ICEfaces and JBoss 4.2.0GA?

Any help would be much appreciated.
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


Without testing any of my assumptions and strictly going by what you have provided, I'd start by removing:

\WEB-INF\lib\jsf-api.jar
\WEB-INF\lib\jsf-impl.jar

from your app. This is the Sun API and implementation of JSF and judging by the message you got, you probably don't want to mix and match JSF implementations. This can cause problems on previous versions of JBoss as it comes pre-bundled with MyFaces.

If JBoss 4.2.0 GA still comes bundled with MyFaces (just downloading it now), you may want to remove:

\WEB-INF\lib\myfaces-api-1.1.5.jar
\WEB-INF\lib\myfaces-impl-1.1.5.jar

as well.

After checking the download, it appears that JBoss now includes the Sun RI version instead of MyFaces. At any rate, you can probably remove both implementations from your application and try to run it again.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team