[EJB/JBoss] - org.jboss.ejb3.remoting.BaseRemoteProxy serialid exception
by ycindepalle
Hello
I am deploying my application in jboss 4.2.2GA version. The application accesses ejb services from another application deployed in jboss 405.
I tried using the jboss 405 ejb lib jars along with the deployment.(jboss-annotations-ejb3.jar, jboss-ejb3-client.jar, jboss-ejb3x.jar)
I am getting the following exception when deploying my application.
==========================
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'securityServiceRemote' while setting bean property 'securityServiceRemote'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityServiceRemote' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityServiceRemote' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]
Caused by:
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:197)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:184)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
====================
Any help is greatly appreciated. I see some issues with this serialid in the bugs list and looks like they are fixed but i am unable to proceed.
thanks very much in advance
Yugandhar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119217#4119217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119217
18 years, 6 months
[JBoss Seam] - Representing many kinds of entities in DB with two tables us
by gduq
We have an application for submitting application forms... LOTS of forms. The forms have different fields (obviously) and different validation requirements for the fields.
We are trying to avoid having to create a new table for each form. So we thought we could do this -> have two tables in the DB 'FORMS' and 'FORM_FIELD_VALUES' 'FORM_FIELD_VALUES' having the form, filed name and field value for any form. Problem solved! right? well so we thought anyway until we tried to figure out how to create the model classes and bind the views to them.
I had a couple of ideas of how to do this but they all seam flawed:
First Idea:
Since I like the validation annotations it seems like I will need to have one model class for each type of form with the fields and their respective validation annotations. And then have the controller convert this into a form object with its collection of formFieldValues before saving it. The problem is that to use the validation annotations on the model the classes need to be '@Entitiy's and therefore need to map directly to tables...so again we end up with one table per form (albeit empty tables)
Second Idea:
Use a single groovy class for the Form model with a "fieldValues" hash populated with keys based on what kind of form it is. Use groovy to do method-missing style metta programming magic to present this as a bean setters and getters don't really exist but they work anyway if the key is in the hash. Down side is doing this seems like it would be complex and I would be able to use the lovely validation annotations.
Any advise on a better way to do this would be hugely appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119215#4119215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119215
18 years, 6 months
[JBoss jBPM] - Re: problem using mail inside timer
by tongz
Thank you all for the reply.
kukeltje, my understanding from the document is that "mail" is an action and "mail-node" is a node? Also, here "mail" does work fine in event, but just not valid in timer.
anuragpaliwal, are you saying you implemented this with "mail" or org.jbpm.mail.Mail? I suppose it's the later. The following code works fine using org.jbpm.mail.Mail:
<state name="resolve-issue">
| <event type="node-enter">
| <mail name="notification"
| to="user1@localhost"
| template="notification">
| </mail>
| </event>
| <timer name="timer-reminder-1" duedate="5 seconds">
| <action class="org.jbpm.mail.Mail">
| <to>user1@localhost</to>
| <template>actor-reminder-1</template>
| </action>
| </timer>
| <transition to="end"></transition>
| </state>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119213#4119213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119213
18 years, 6 months
[JBoss Seam] - server.log size is too big
by asookazian
In less than a couple of hours today, with one Seam2.0.0.GA app on my JBoss 4.2.1.GA, the server.log exploded to 300MB+.
When I changed the overall threshold to WARN in log4j.xml, the size of the log was much smaller after a few minutes (approx. 5KB).
It seems after perusing the server.log that ajax4jsf and Seam are very verbose at the DEBUG level. I'm not sure how valuable that info is to a corporate developer.
Anybody else encountering this problem and what is the recommended solution (obviously adding filters like below but you need to know what all the culprits are @ DEBUG level to filter out from server.log).
In prod, is the recommendation to set the threshold for server.log to ERROR?
\jboss-4.2.1.GA\server\default\conf\jboss-log4j.xml:
<!-- ================ -->
| <!-- Limit categories -->
| <!-- ================ -->
|
| <!-- 01/11/08 - Limit the org.jboss.seam to INFO as its DEBUG is verbose -->
| <category name="org.jboss.seam">
| <priority value="WARN"/>
| </category>
thx.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119211#4119211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119211
18 years, 6 months
[Beginners Corner] - Referencing EJBs from Scheduler w/JBOSS 4.2.2GA
by mjhammel
I've searched (and read) all messages related to "schedulable" in the forums but I still don't quite understand how I acquire and use an EJB from within a schedulable.
What I have that works:
A web service session bean that can retrieve an EJB using EntityManager.
A schedulable class included in the EAR file that does get launched at deploy time.
My EJB classes are generated by Hibernate using reverse engineering from an existing DB. My schedulable looks like this (sans any EJB references):
import java.util.Date;
| import org.jboss.varia.scheduler.Schedulable;
| import org.apache.log4j.Logger;
|
| public class CronSchedulable implements Schedulable
| {
| private static final Logger log = Logger.getLogger(CronSchedulable.class);
| private String name;
| private long value;
|
| public CronSchedulable(String name, long value)
| {
| this.name = name;
| this.value = value;
| log.info("ctor, name: " + name + ", value: " + value);
| }
|
| public void perform(Date now, long remainingRepetitions)
| {
| log.info("perform, now: " + now +
| ", remainingRepetitions: " + remainingRepetitions +
| ", name: " + name + ", value: " + value);
|
| }
|
| }
This is packaged into a sar:
mjhammel(tty1)$ jar tvf crunch-schedulers.sar
| 0 Fri Jan 11 11:08:06 MST 2008 META-INF/
| 106 Fri Jan 11 11:08:04 MST 2008 META-INF/MANIFEST.MF
| 869 Fri Jan 11 10:54:48 MST 2008 META-INF/jboss-service.xml
| 0 Fri Jan 11 11:08:04 MST 2008 com/
| 0 Fri Jan 11 11:08:04 MST 2008 com/cei/
| 0 Fri Jan 11 11:08:04 MST 2008 com/cei/crunch/
| 0 Fri Jan 11 11:08:04 MST 2008 com/cei/crunch/schedulers/
| 1359 Fri Jan 11 11:08:04 MST 2008 com/cei/crunch/schedulers/CronSchedulable.class
and the jboss-service.xml for this sar looks like this:
<?xml version="1.0" encoding="UTF-8"?>
|
| <!-- Example Scheduler MBean for .Crunch -->
| <server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="com.cei.crunch.schedulers:service=Scheduler">
| <depends>jboss.jca:service=DataSourceBinding,name=CrunchDS</depends>
| <depends>jboss.j2ee:module=crunch-ejb.jar,service=EJB3</depends>
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">com.cei.crunch.schedulers.CronSchedulable</attribute>
| <attribute name="SchedulableArguments">TheName,123456789</attribute>
| <attribute name="SchedulableArgumentTypes">java.lang.String,long</attribute>
|
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">60000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
| </server>
That's the correct datasource JNDI name but I'm not sure I've specified the EJB3 depends correctly. The sar file is then packaged into the EJB:
mjhammel(tty1)$ jar tvf Crunch.ear
| 0 Fri Jan 11 11:08:06 MST 2008 META-INF/
| 106 Fri Jan 11 11:08:04 MST 2008 META-INF/MANIFEST.MF
| 100 Fri Jan 11 11:08:06 MST 2008 META-INF/jboss-app.xml
| 6165 Fri Jan 11 11:08:04 MST 2008 crunch-web.war
| 11740 Fri Jan 11 11:07:58 MST 2008 crunch-ejb.jar
| 2119 Fri Jan 11 11:08:04 MST 2008 crunch-schedulers.sar
| 918 Fri Jan 11 11:08:06 MST 2008 META-INF/application.xml
At deploy time, I get the simple scheduler message:
11:08:08,310 INFO [WSDLFilePublisher] WSDL published to: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/data/wsdl/Crunch.ear/crunch-web.war/SubscriberServicesService59269.wsdl
| 11:08:08,319 INFO [EARDeployer] Started J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear
| 11:08:08,878 INFO [CronSchedulable] perform, now: Fri Jan 11 11:08:08 MST 2008, remainingRepetitions: -1, name: TheName, value: 123456789
|
My Web Service looks like this:
package com.cei.crunch.server.ws.SubscriberServices;
|
| import javax.ejb.*;
| import javax.jws.WebService;
| import javax.jws.WebMethod;
| import javax.jws.soap.SOAPBinding;
| import javax.persistence.*;
| import javax.naming.InitialContext;
| import javax.transaction.UserTransaction;
| import javax.annotation.Resource;
|
| import com.cei.crunch.ejb.Subscriber;
|
| /* Make this an EJB3 service endpoint. */
| @Stateless
| @Remote(SubscriberServices.class)
|
| /* Make this an Web Services endpoint. */
| @WebService(
| name = "SubscriberWS",
| endpointInterface = "com.cei.crunch.server.ws.SubscriberServices.SubscriberServicesEndpoint"
| )
| @SOAPBinding(style = SOAPBinding.Style.RPC)
|
| /**
| * The .Crunch interface to Subscriber Services
| */
| public class SubscriberServices implements SubscriberServicesEndpoint {
|
| private UserTransaction utx;
| private EntityManager em;
|
| @WebMethod
| public Subscriber findSubscriber(String guid)
| {
| Subscriber s = null;
|
| InitialContext ctx = null;
| EntityManager em = null;
| try {
| ctx = new InitialContext();
| em = (EntityManager) ctx.lookup("java:/CrunchPersistence");
| utx = (UserTransaction) ctx.lookup("java:/comp/UserTransaction");
| }
| catch (Exception e)
| {
| // throw new WebServiceException(ex);
| System.out.println("Subscriber.find(): context lookup failure.");
| e.printStackTrace();
| return null;
| }
|
| if ( em == null )
| {
| System.out.println("Subscriber.find(): em is null; can't find subscriber");
| }
| else
| {
| System.out.println("Subscriber.find(): em is not null; returning subscriber for guid = " + guid);
| try {
| utx.begin();
| s = em.find(Subscriber.class, guid);
| if ( s != null )
| {
| System.out.println("Subscriber name : " + s.getFirstname());
| System.out.println("Subscriber email: " + s.getEmailAddress());
| }
| utx.commit();
| }
| catch (Exception e)
| {
| System.out.println("Subscriber.find(): find problem.");
| e.printStackTrace();
| }
| }
| if ( s != null )
| return s;
| else
| return null;
| }
| }
The Web Service works as shown with a remote client, but I've not been able to get injection to work for the context, entity manager or transaction. So these are all done manually within the Web Service session bean (as listed in the code here).
As shown, everything works fine. I can query the Web Service from a remote client to get back my Subscriber object. How do I do the same thing from within the Schedulable class? I've found code snippets in the forums but they aren't clear to me how I should be approaching this. Does the schedulable do things just like the Web Service is doing it? Do I try to use injection in the schedulable? If so, what would the equivalent injection look like to perform the same thing the Web Service is doing? And how do I get a UserTransaction? When I tried to copy the code from the Web Services class to the Schedulable class and deployed it I got errors related to the UserTransaction lookup.
In summary: how do I access an EJB from within my schedulable using JBOSS 4.2.2GA and EJB3.0?
All pointers are appreciated. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119204#4119204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119204
18 years, 6 months
[JBoss AOP] - aop precompiler ant task fails to find class reference
by thebaz
Hi all,
I'm trying to precompile my classes with AOP ant Task in order to use them with JBoss PojoCache.
Here follows ant task log.
aopc
| [info] Total length of filenames to be compiled is greater than 1000, listing files in --SOURCEPATH: /tmp/src22454.tmp
| [debug] Passed in instrumentor: null
| [debug] Defaulting instrumentor to: org.jboss.aop.instrument.ClassicInstrumentor
| [debug] jboss.aop.class.path is NULL
| [debug] jboss.aop.search.classpath: 'null' true
| [debug] jboss.aop.path: /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/jboss-aop.xml
| jboss.aop.path[0]: /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/jboss-aop.xml
| [deploying] file:/home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/jboss-aop.xml
| [trying to transform] rrd.gto.cbe.common.domain.PolicyItem
| [debug] There are no caller pointcuts!
| [debug] javassist.CtMethod@74eb0e95[public getOid ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@50d6273f[public setOid (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtMethod@4b9b39fc[public getValue ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@6d1b59e6[public setValue (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtConstructor@1bab50a[public PolicyItem ()V] matches no pointcuts
| [debug] rrd.gto.cbe.common.domain.PolicyItem.oid:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.value:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.oid:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.value:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] was rrd.gto.cbe.common.domain.PolicyItem converted: true
| [compiled] /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/temp/gto-cbe/rrd/gto/cbe/common/domain/PolicyItem.class
| [cannot compile] isInterface: rrd.gto.cbe.common.domain.device.DevicesRelationSpecificationKey
| [no comp needed] /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/temp/gto-cbe/rrd/gto/cbe/common/domain/device/DevicesRelationSpecificationKey.class
| [trying to transform] rrd.gto.cbe.common.domain.device.implementation.RrdDeviceKey
| [debug] There are no caller pointcuts!
| [debug] javassist.CtMethod@6e4ac4cc[public getRrdPrimaryKey ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@fe561cb6[public setRrdPrimaryKey (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtMethod@33a3ff1e[public clone ()Ljava/lang/Object;] matches no pointcuts
| [debug] javassist.CtMethod@87a44f24[public equals (Ljava/lang/Object;)Z] matches no pointcuts
| [debug] javassist.CtMethod@68af968e[public makeApplicationContext ()Ljavax/oss/ApplicationContext;] matches no pointcuts
| [debug] javassist.CtMethod@6f035bf6[public getApplicationContext ()Ljavax/oss/ApplicationContext;] matches no pointcuts
| [debug] javassist.CtMethod@c6e242ab[public setApplicationContext (Ljavax/oss/ApplicationContext;)V] matches no pointcuts
| [debug] javassist.CtMethod@2d24d5cf[public setApplicationDN (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtMethod@9a02c225[public getApplicationDN ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@31e6d0b1[public getType ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@1b64fdf3[public setType (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtMethod@1d688d34[public getPrimaryKey ()Ljava/lang/Object;] matches no pointcuts
| [debug] javassist.CtMethod@b756f664[public setPrimaryKey (Ljava/lang/Object;)V] matches no pointcuts
| [debug] javassist.CtMethod@5ee4dfcc[public makePrimaryKey ()Ljava/lang/Object;] matches no pointcuts
| [debug] javassist.CtConstructor@337d0f[public RrdDeviceKey ()V] matches no pointcuts
| org.jboss.aop.instrument.TransformationException: Failed to aspectize class rrd.gto.cbe.common.domain.device.implementation.RrdDeviceKey. Could not find class it references rrd.gto.cbe.common.domain.device.DeviceKey It may not be in your classpath and you may not be getting field and constructor weaving for this class.
| at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:593)
| at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:646)
| at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
| at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
| at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
| at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
| at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
| Exception in thread "main" org.jboss.aop.instrument.TransformationException: Failed to aspectize class rrd.gto.cbe.common.domain.device.implementation.RrdDeviceKey. Could not find class it references rrd.gto.cbe.common.domain.device.DeviceKey It may not be in your classpath and you may not be getting field and constructor weaving for this class.
| at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:593)
| at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:646)
| at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
| at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
| at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
| at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
| at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
| /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/gto-deploy.xml:304: Java returned: 1
| at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
| at org.jboss.aop.ant.AopC.execute(AopC.java:320)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| at org.apache.tools.ant.Task.perform(Task.java:348)
| at org.apache.tools.ant.Target.execute(Target.java:357)
| at org.apache.tools.ant.Target.performTasks(Target.java:385)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| at org.apache.tools.ant.Main.runBuild(Main.java:698)
| at org.apache.tools.ant.Main.startAnt(Main.java:199)
| at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
| /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/gto-deploy.xml:304: Java returned: 1
| at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
| at org.jboss.aop.ant.AopC.execute(AopC.java:320)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| at org.apache.tools.ant.Task.perform(Task.java:348)
| at org.apache.tools.ant.Target.execute(Target.java:357)
| at org.apache.tools.ant.Target.performTasks(Target.java:385)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| at org.apache.tools.ant.Main.runBuild(Main.java:698)
| at org.apache.tools.ant.Main.startAnt(Main.java:199)
| at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
| /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/gto-deploy.xml:304: Java returned: 1
| at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
| at org.jboss.aop.ant.AopC.execute(AopC.java:320)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| at org.apache.tools.ant.Task.perform(Task.java:348)
| at org.apache.tools.ant.Target.execute(Target.java:357)
| at org.apache.tools.ant.Target.performTasks(Target.java:385)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| at org.apache.tools.ant.Main.runBuild(Main.java:698)
| at org.apache.tools.ant.Main.startAnt(Main.java:199)
| at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
|
| Ant build completed with 3 errors 3 warnings in 3s at 6:20:59 PM
|
The first class is correctly weaved:
[trying to transform] rrd.gto.cbe.common.domain.PolicyItem
| [debug] There are no caller pointcuts!
| [debug] javassist.CtMethod@74eb0e95[public getOid ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@50d6273f[public setOid (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtMethod@4b9b39fc[public getValue ()Ljava/lang/String;] matches no pointcuts
| [debug] javassist.CtMethod@6d1b59e6[public setValue (Ljava/lang/String;)V] matches no pointcuts
| [debug] javassist.CtConstructor@1bab50a[public PolicyItem ()V] matches no pointcuts
| [debug] rrd.gto.cbe.common.domain.PolicyItem.oid:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.value:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.oid:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] rrd.gto.cbe.common.domain.PolicyItem.value:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
| [debug] was rrd.gto.cbe.common.domain.PolicyItem converted: true
| [compiled] /home/mbazzoni/IdeaProjects/gto/gto-deploy/gto-deploy/temp/gto-cbe/rrd/gto/cbe/common/domain/PolicyItem.class
|
but it is a simple class two fields (Strings)
at the 2nd class gets an exception:
Exception in thread "main" org.jboss.aop.instrument.TransformationException: Failed to aspectize class rrd.gto.cbe.common.doma
| in.device.implementation.RrdDeviceKey. Could not find class it references rrd.gto.cbe.common.domain
| .device.DeviceKey It may not be in your classpath and you may not be getting field and constructor
| weaving for this class.
I've double checked the class is in classpath. If I use load-time aop instrumentation it works good.
What can the problem be?
Thank you in advance,
Marco.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119188#4119188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119188
18 years, 6 months
[Clustering/JBoss] - Re: Active/Passive Cluster
by bstansberry@jboss.com
This is essentially a function of your load balancer. If the JBoss AS instances are clustered and the webapps are marked distributable, then your sessions will be replicated and will be available on either node.
What makes it active/passive is the fact that your load balancer sends all the requests to server A unless it's not available. This can be configured easily if you are using mod_jk as your load balance; in workers.properties, you mark on worker as "disabled" and the other as not.
| worker.node1.disabled=true
| .....
| worker.node2.disabled=false
|
A disabled worker will not receive requests except for:
1) If no non-disabled workers are available (i.e. active/passive)
2) OR a sticky session is associated with the worker (i.e. if you disable a worker that was enabled, it will continue to handle its existing sessions until they bleed off. This allows you quiesce a running server before shutting it down.)
Obviously, if you start node1 with disabled=true, it will have no existing sessions, so only #1 applies.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119184#4119184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119184
18 years, 6 months
[JBoss Seam] - JSF/Seam Binding and Nested Classes
by tom_goring
Hi,
Can anyone explain to me why I can't seem to bind to a nested class.
As soon as do the outer bean's instance variables are null?
E.g.
This is OK:
| <h:selectOneMenu value="#{seamBean.property}">
| ..
| </h:selectOneMenu>
|
this is Not OK
| <h:selectOneMenu value="#{seamBean.helperObject.property}">
| ..
| </h:selectOneMenu>
|
helperObject in this case would be a simple class that derived some fields from the seamBean.
E.g. (code just for illustration)
| HelperObject getHelperObject() {
| return new HelperObject() {
| public String getProperty() {
| return parent.property;
| }
| }
|
When getProperty is invoked here all the SeamBean's instance variables are null (when they are in fact populated). Also the toString on the seamBean is showing the same Java instance ... so I can't understand why it's state is different.
Are there some rules about binding properties in JSF or Seam?
Thanks in advance....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119181#4119181
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119181
18 years, 6 months
[JBoss Seam] - ClassNotFoundException: org.jboss.seam.security.SecurityFunc
by SunFire
Hi there,
I am stuck with a problem that I am unable to resolve. I am currently porting a Seam 1.2.1 app to run on JBAS 4.2.2.GA. Everything seems to run ok now but s:hasRole blows up all time time - no matter what I do. I found several references to this in the forum and on the net but nobody had a solution to it.
This is how the error can be reproducced:
1. I downloaded Seam 1.2.1 (the JBPAPP_4_3_0_GA branch) and JBAS 4.2.2.GA
2. applied rhds-seam-gen-patch.zip
3. build Seam
4. Setup Eclipse with JBoss Tools 1.0.0.GA
5. Create the Seam 1.2 Runtime and then a new Seam Web Project
6. add this line to home.xhtml
<s:fragment rendered="#{s:hasRole('admin')}"><li>this is not working</li></s:fragment><h:form><h:commandButton action="test" value="test"></h:commandButton> </h:form>
|
Now if you load the page for the first time it will work but when you click the button it will break with this exception:
18:18:30,336 ERROR [STDERR] java.lang.ClassNotFoundException: org.jboss.seam.security.SecurityFunctions
| 18:18:30,336 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
| 18:18:30,336 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
| 18:18:30,336 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:147)
| 18:18:30,336 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl.resolveFunction(FunctionMapperImpl.java:53)
| 18:18:30,337 ERROR [STDERR] at org.apache.el.parser.AstFunction.getValue(AstFunction.java:71)
| 18:18:30,337 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| 18:18:30,337 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| 18:18:30,337 ERROR [STDERR] at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| 18:18:30,337 ERROR [STDERR] at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| 18:18:30,337 ERROR [STDERR] at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| 18:18:30,337 ERROR [STDERR] at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| 18:18:30,337 ERROR [STDERR] at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| 18:18:30,337 ERROR [STDERR] at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| 18:18:30,337 ERROR [STDERR] at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| 18:18:30,337 ERROR [STDERR] at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| 18:18:30,337 ERROR [STDERR] at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| 18:18:30,337 ERROR [STDERR] at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| 18:18:30,337 ERROR [STDERR] at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| 18:18:30,337 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| 18:18:30,337 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| 18:18:30,338 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 18:18:30,338 ERROR [STDERR] at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 18:18:30,338 ERROR [STDERR] at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| 18:18:30,338 ERROR [STDERR] at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 18:18:30,338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 18:18:30,339 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 18:18:30,339 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 18:18:30,339 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| 18:18:30,339 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 18:18:30,339 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| 18:18:30,339 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 18:18:30,339 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| 18:18:30,339 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| 18:18:30,339 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 18:18:30,349 WARN [lifecycle] javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| javax.faces.FacesException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:373)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| ... 48 more
| 18:18:30,352 WARN [lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@21253f1) threw exception
| javax.faces.FacesException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.FacesException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:373)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| ... 38 more
| Caused by: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| ... 48 more
| 18:18:30,355 ERROR [ExceptionFilter] uncaught exception
| javax.servlet.ServletException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.FacesException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:373)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| ... 35 more
| Caused by: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| ... 48 more
| 18:18:30,355 ERROR [ExceptionFilter] exception root cause
| javax.faces.FacesException: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:373)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| ... 48 more
| 18:18:30,421 ERROR [DebugPageHandler] redirecting to debug page
| javax.el.ELException: /home.xhtml @22,54 rendered="#{s:hasRole('admin')}": Function 's:hasRole' not found
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:993)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
Is the error on my side or is this something for JIRA?
Thanks, Thorsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119171#4119171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119171
18 years, 6 months
[JBoss jBPM] - Starting process from a jsp
by francis1970
Hello,
I have drawn the process with JBPM plugin, now I need to invoke the process from my web application.
Unfortunately when I try to parse the process definition from my Startup-Servlet
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("processdefinition.xml");
I get
17:32:39,531 ERROR [JpdlXmlReader] couldn't parse process definition
| org.dom4j.DocumentException: null Nested exception: null
| at org.dom4j.io.SAXReader.read(SAXReader.java:484)
| at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
| at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:142)
| at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
| at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
| at pride.ndc.servlets.TestJBPM.doGet(TestJBPM.java:45)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at
This is the checklist I have done:
-Added all jbpm libraries (the same I use with my Eclipse-JBPM Project) under lib of web application
-Added under WEB-INF the files: hibernate.cfg.xml, jbpm.cfg.xml, processdefinition.xml
I'm using JBoss 4.0.x
What else am I missing ??
Thanks a lot
Francesco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119151#4119151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119151
18 years, 6 months
[JBoss Seam] - No selected element from <h:selectOneListbox>
by haefti
Hi!
I have a problem to get the selected element from a select box.
I would like to have a list of items and a button which leads to a page where I can edit the values of the selected element.
| <h:selectOneListbox size="10">
| <s:selectItems value="#{videos}" var="video" label="#{video.name}" />
| <s:convertEntity />
| </h:selectOneListbox>
|
| <h:commandButton type="submit" action="#{manager.editVideo()}" value="Change"></h:commandButton>
|
If I do not choose anything and press the button the first element is chosen (I can see the id of the selected item in the log) but if I choose an element the method manager.editVideo() is not called and the page is rendered again.
(I know someone reported this kind of problem here in the forum but I can't find the posting any more.)
My second problem is how to go on with it to come to the edit page.
I have an edit.xhtml where I can edit the values of each item (video) which works pretty good if I use a data table with a link and the id as parameter instead of the select box above..
How do I do this from the select box? Is it right that I need the editVideo() method as action for the command button even though the method does nothing but logging the id of the selected element at the moment?
Is this code from my pages.xml already wrong?
| <page view-id="/edit.xhtml" action="#{manager.editVideo}"/>
|
Thanks for your help!
Haefti
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119147#4119147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119147
18 years, 6 months
[JBoss Seam] - Re: Seam with Hibernate Version Conflict
by leandro3.marinho
Follow my application.xml:
| <application>
| <display-name>spiv-ear</display-name>
| <module>
| <web>
| <web-uri>spiv-war.war</web-uri>
| <context-root>spiv</context-root>
| </web>
| </module>
| <module>
| <ejb>spiv-ejb-0.0.1-SNAPSHOT.jar</ejb>
| </module>
| <module>
| <ejb>jboss-seam-2.0.0.GA.jar</ejb>
| </module>
| <module>
| <java>hibernate-3.2.5.ga.jar</java>
| </module>
| <module>
| <java>hibernate-annotations-3.3.0.ga.jar</java>
| </module>
| <module>
| <java>hibernate-validator-3.0.0.GA.jar</java>
| </module>
|
| </application>
|
If I remove the hibernate files of lib directory of JBoss AS, I get this exception when I try load my app.
| java.lang.NoClassDefFoundError: org/hibernate/cfg/EJB3DTDEntityResolver
| at org.jboss.ejb3.Ejb3Deployment.initializePersistenceUnits(Ejb3Deployment.java:535)
| at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:329)
| at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:330)
| at org.jboss.system.ServiceController.create(ServiceController.java:273)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy33.create(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 14:25:38,134 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=jboss-seam-2.0.0.GA.jar
| java.lang.NoClassDefFoundError: org/hibernate/SessionFactory
| at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:347)
| at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:140)
| at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:292)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:356)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119143#4119143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119143
18 years, 6 months
[Management, JMX/JBoss] - Re: How to have multiple instances of an MBean
by dimitris@jboss.org
By design mbeans must handle their own concurrency, as many threads can be accessing them.
Dynamic mbeans can alter their mbean interface dynamically, e.g. now they report 3 attributes and 2 operation, then next moment 5 attributes and 4 operations, although this is not very common.
Conceptually, the mbean would report a single MBeanInfo, at any given point in time, in practise, you can alter the reported mbeaninfo even for concurrent requests, but this is certainly a sick thing to do.
Dynamic mbeans are really meant for adapting their interface to a particular backend/resource upon creation, plus they are supposed to be a little faster (no reflective calls), but harder to code. They are not meant for changing their interface every millisecond.
I think you should start the other way round. What you want to do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119122#4119122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119122
18 years, 6 months
[JBoss Seam] - Re: Wildcard for pages action
by mmichalek
There's nothing wrong with that.
However, it's not possible for me to use from-action as defined by Seam because most of my actions are being passed into facelet components as strings. Inside the facelet component, I execute the action at the right time:
| action="#{componentUtils.invokeAction(action)}"
|
This causes a problem with navigation because all of the action expressions look the same!
Also, we are designing our actions to be very granular and only expose one execute() method. Action.exeucte() either returns NULL (failure) or it's component name (success). (This seems a lot more simple than asking developers to return different arbitrary outcomes). When an action succeeds and returns it's component name, I will want to be able to conditionally navigate based on the state of the system.
For example:
| <navigation from-action="searchAction">
| <rule if="#{searchManager.searchResults.size == 1}">
| <redirect view-id="/showRecord.xhtml" />
| </rule>
| <rule if="#{searchManager.searchResults.size > 1}">
| <redirect view-id="/SearchResults.xhtml" />
| </rule>
| </navigation>
|
Let me know what you think of all of this and if you see any inherent problems with these approaches.
Thanks,
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119116#4119116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119116
18 years, 6 months