[JBoss Seam] - Re: Using Seam with Facelets and EL Parameters
by frosted
I think I may be on to something and I wonder if anyone can clarify this for me a bit. When I removed the following from the faces-config.xml, I got a NoClassDefFoundError, which I found the jar and fixed:
<factory>
| <application-factory>com.sun.faces.application.ApplicationFactoryImpl</application-factory>
| <faces-context-factory>com.sun.faces.context.FacesContextFactoryImpl</faces-context-factory>
| <lifecycle-factory>com.sun.faces.lifecycle.LifecycleFactoryImpl</lifecycle-factory>
| <render-kit-factory>com.sun.faces.renderkit.RenderKitFactoryImpl</render-kit-factory>
| </factory>
|
But, when I did that, Ajax4jsf/RichFaces stopped working properly for me and I got a slew of errors such as:
org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org.ajax4jsf.javascript.AjaxScript.jsf
| at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:393)
| at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:337)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:155)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
| Truncated. see log file for complete stacktrace
|
and
org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/scripts/browser_info.js.jsf
| at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:393)
| at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:337)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:155)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
| Truncated. see log file for complete stacktrace
|
I think I narrowed it down to the application-factory element. If I omit it, the page I am trying to display comes up, but it's not functional, if I don't, I get an EL-expression error.
Does anyone have any insight into how I can get Ajax4jsf/RichFaces and the Seam-EL to play nice together? Again, any help is appreciated!
Cheers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113447#4113447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113447
18 years, 4 months
[JBoss AOP] - Re: JBoss-5.0.0.Beta2 AOP problems
by vbatista
Hi!
Here is my jboss-aop.xml:
| <?xml version="1.0" encoding="UTF-8" ?>
| <aop>
| <aspect class="com.test.core.aop.aspects.InjectSessionBeanAspect" />
| <aspect class="com.test.core.aop.aspects.TestAspect" />
|
| <bind pointcut="field(* com.test.*->@com.test.core.aop.annotations.InjectSessionBean)" >
| <advice name="access" aspect="com.test.core.aop.aspects.InjectSessionBeanAspect" />
| </bind>
|
| <bind pointcut="execution(* com.test.*->@com.test.core.aop.annotations.MPlatformTest(..))" >
| <advice name="test" aspect="com.test.core.aop.aspects.TestAspect" />
| </bind>
|
| </aop>
|
and here is my AspectManager MBean configuration (..../conf/bootstrap-beans.xml from JBoss-5.0.0):
| <bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
| <constructor>
| <parameter><![CDATA[
| <aop>
| <aspect name="mainDeployer" class="org.jboss.profileservice.aop.MainDeployerAspect"/>
| <bind pointcut="execution(* $instanceof{org.jboss.deployers.spi.deployment.MainDeployer}->process(..))">
| <advice name="process" aspect="mainDeployer"/>
| </bind>
| <aspect name="persist" class="org.jboss.profileservice.aop.PersistAspect"/>
| <bind pointcut="execution(* $instanceof{org.jboss.managed.api.ManagedProperty}->setValue(..))">
| <advice name="setValue" aspect="persist"/>
| </bind>
| </aop>]]>
| </parameter>
| </constructor>
|
| <property name="enableLoadtimeWeaving">true</property>
| <!-- only relevant when EnableLoadtimeWeaving is true.
| When transformer is on, every loaded class gets
| transformed. If AOP can't find the class, then it
| throws an exception. Sometimes, classes may not have
| all the classes they reference. So, the Suppressing
| is needed. (i.e. Jboss cache in the default configuration -->
| <property name="suppressTransformationErrors">true</property>
| <property name="prune">true</property>
| <property name="include">org.jboss.test., org.jboss.injbossaop.</property>
| <property name="exclude">org.jboss.</property>
| <!-- This avoids instrumentation of hibernate cglib enhanced proxies
| <property name="ignore">*$$EnhancerByCGLIB$$*</property> -->
| <property name="optimized">true</property>
| <property name="verbose">false</property>
| <!--
| Available choices for this attribute are:
| org.jboss.aop.instrument.ClassicInstrumentor (default)
| org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
| <property name="instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</property>
| -->
| </bean>
|
Where can I configure the packages included for transformation? I didn't change the include property....is it the one which allows the configuration of packages to transform?
Thanks in advance.
Best regards,
Victor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113442#4113442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113442
18 years, 4 months