[Microcontainer] - Re: Deployment contextual information
by alesj
"david.lloyd(a)jboss.com" wrote : I see - so I can attach any kind of MetaData, so long as it implements MetaData? Does the MDR (or any other project) define a convention for this?
|
Look at MutableMetaData class.
MetaData == any object;
We just have annotation notion for ease of use.
Another useful class is MetaDataStack,
so you can get to MetaData instance from anywhere
- via classic thread local hack. :-)
"david.lloyd(a)jboss.com" wrote :
| What is the lifespan of something I put in there?
|
It's up to you.
We don't have any magic cleaning.
We only do a cleanup at undeploy - see your last question.
"david.lloyd(a)jboss.com" wrote :
| Can I cause leaks by attaching stuff?
|
Sure.
At the end, metadata is nothing more then sophisticated Map.
It's the api that makes it useful.
"david.lloyd(a)jboss.com" wrote :
| Is it removed on undeploy somehow?
|
Yes.
In DeployersImpl we call DeploymentContext::cleanup,
which cleans up the scope matching metadata retrievals.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209390#4209390
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209390
17 years, 5 months
[Installation, Configuration & DEPLOYMENT] - Problem with deploying application
by lukep1984
I'm trying to deploy web application containing facelets 1.1.14, jsf 1.2 and spring 2.5 and I'm getting this mistake:
09:34:44,119 ERROR [[/Projekt]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
| java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
| at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1638) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:455)
I have following libs in my project:
| com.springsource.org.jboss.el-2.0.0.GA.jar
| commons-logging.jar
| el-api-1.0.jar
| el-impl-1.0.jar
| glassfish.jsf_1.2.3.2.jar
| glassfish.jstl_1.2.0.1.jar
| javax.jsf_1.2.0.0.jar
| jsf-facelets.jar
| ognl-2.6.9.jar
| org.springframework.binding-2.0.5.RELEASE.jar
| org.springframework.faces-2.0.5.RELEASE.jar
| org.springframework.js-2.0.5.RELEASE.jar
| org.springframework.webflow-2.0.5.RELEASE.jar
| spring.jar
| spring-webmvc.jar
|
|
| Thanks for all responses.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209388#4209388
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209388
17 years, 5 months
[JBoss jBPM] - Re: Oracle DB with jbpm 3.3.1 GA
by Toriton
I'm not sure if is the same problem i had at start :), but could be that you don' have USERS GROUPS and MEMBERSHIP in your tables.
If you need a script to create the db in oracle it is in the jBPM runtime location you configured.
The script posted here is for standard user as they are listed in the login page console.
(got this script from this post
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4067793#4067793 and worked fine for may Oracle Express 10)
| INSERT INTO JBPM_ID_GROUP VALUES(1,'G','sales','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(2,'G','admin','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(3,'G','user','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(4,'G','hr','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL);
| INSERT INTO JBPM_ID_USER VALUES(1,'U','user','user(a)sample.domain','user');
| INSERT INTO JBPM_ID_USER VALUES(2,'U','manager','manager(a)sample.domain','manager');
| INSERT INTO JBPM_ID_USER VALUES(3,'U','admin','admin(a)sample.domain','admin');
| INSERT INTO JBPM_ID_USER VALUES(4,'U','shipper','shipper(a)sample.domain','shipper');
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,4,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,4,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,NULL,2,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,3,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,3,2);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,2,2);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(10,'M',NULL,NULL,2,5);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(11,'M',NULL,'boss',2,1);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(12,'M',NULL,NULL,1,1);
I hope this help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209380#4209380
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209380
17 years, 5 months