Community Updates, October 20 - October 27
by JBoss Community
===============================================================
Community Updates for October 20 - October 27
===============================================================
You haven't set a status update. Log in and set your status at: http://community.jboss.org.
Your Content
* testing the new list server [http://community.jboss.org/thread/127309]
was viewed 13,055 times and replied to by 3 people
* No Link to Jboss Nukes [http://community.jboss.org/thread/90785]
was viewed 110,609 times and replied to by 3 people
Your Connections - Activity by people you are following
You don't have any connections yet. Find people and connect! [http://community.jboss.org/people/]
Popular Content - The content that is most viewed and participated in
* SecureTheJmxConsole [http://community.jboss.org/docs/DOC-12190]
* Open Session in View [http://community.jboss.org/docs/DOC-13954]
* Sessions and transactions [http://community.jboss.org/docs/DOC-13951]
* Statement Regarding Security Threat to JBoss Application Server [http://community.jboss.org/blogs/mjc/2011/10/20/statement-regarding-secur...]
* Functional Testing with Arquillian [http://community.jboss.org/community/arquillian/blog/2011/09/17/functiona...]
* Will JBoss Tools run on the final Eclipse 3.7 Indigo ? [http://community.jboss.org/community/tools/blog/2011/06/21/will-jboss-too...]
* Re: comboBox suggestion list rendering above input [http://community.jboss.org/message/51037#51037]
* Re: a4j:support inside h:inputText [http://community.jboss.org/message/51024#51024]
* Re: Schedule [http://community.jboss.org/message/622050#622050]
Tips and tricks - Remember Who, not Where
Have you ever forgotten the location of a file, but remembered who worked on it? With Community you can easily get to all of the content that someone has worked on. Just navigate to their profile and go to their Stuff tab. Inside that tab you can filter by the type of content, like document, discussion, task, or blog post.
Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting: http://community.jboss.org/user-notification-preferences!input.jspa
13 years, 2 months
[JBoss AS7 Development] - Bootdelegation and Jaxb
by Sunil Pandit
Sunil Pandit [http://community.jboss.org/people/spandit2] created the discussion
"Bootdelegation and Jaxb"
To view the discussion, visit: http://community.jboss.org/message/633109#633109
--------------------------------------------------------------
Hello Folks
I am deploying a OSGI bundle in Jboss AS 7. This Bundles uses JAXB . This bundle alos exposes JAXRS services using CXF DOSGI. So I have also deployed CXF DOSGI bundle .
My problem is when my bundle try to initialize the JAXB context , it throws a class cast exception . Further debugging revealed that JAXBConext is using BundleClassLoader to load the Context factory .
com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
To avoid this conflict , I am trying to get my bundle to load JAXB either from Jboss AS7 or from the JDK 1.6 .
I read some article that I can use bootdelegation and specify some packages ao that All these packages will be loaded by parent class loader .
I tried setting bootdelegation for javax.xml.bind.context and for com.sun.* but there is no change in behavior .
I am setting using -Dorg.osgi.framework.bootdelegation=sun.*,com.sun.*,javax.*
I have also tried setting *org.osgi.framework.system.packages.extra in server configuration , but that doesn't help either.
*
Has anyone used this before ?
Can someone share thoughts if I am on right track ?
Is there any other way to resolve this issue ?
Appreciate any insights.
Sunil
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633109#633109]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[JBoss AS7 Development] - JNDI naming issue:EJB3.0 in JBoss AS7
by duan xz
duan xz [http://community.jboss.org/people/duanxz] created the discussion
"JNDI naming issue:EJB3.0 in JBoss AS7"
To view the discussion, visit: http://community.jboss.org/message/633804#633804
--------------------------------------------------------------
bug trace:
javax.naming.NameNotFoundException: StatelessUserManager/UserManagerBean!com.pnft.ejb.UserManager -- service jboss.naming.context.java.app.UserManagerLocalWebClient.StatelessUserManager."UserManagerBean!com.pnft.ejb.UserManager" org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:87) org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173) org.jboss.as.naming.InitialContext.lookup(InitialContext.java:57) org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209) javax.naming.InitialContext.lookup(InitialContext.java:392) org.apache.jsp.index2_jsp._jspService(index2_jsp.java:101) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
java code(LocalWebClient):
InitialContext ctx = new InitialContext();
UserManager userManager = (UserManager)ctx.lookup("java:app/StatelessUserManager/UserManagerBean!com.pnft.ejb.UserManager");
User user = new User();
user.setUsername("张三");
user.setPassword("zhangsan");
out.println(user.getUsername());
userManager.addUser(user);
out.println("用户信息已经被成功保存,它的ID是:" + user.getId());
java code :
package com.pnft.ejb;
import javax.ejb.Local;
import javax.ejb.Stateless;
@Stateless
@Local
public class UserManagerBean implements UserManager
{
public void addUser(User user)
{
System.out.println("User name: " + user.getUsername() + "已经被成功保存!");
System.out.println("The user's password is: " + user.getPassword());
user.setId(10);
}
}
In the documentation( https://docs.jboss.org/author/display/AS7/Order+Application+Migration+fro... https://docs.jboss.org/author/display/AS7/Order+Application+Migration+fro... )
In addition to the change to injection, which was supported in EAP 5.1.0, the lookup name changed from:
OrderManagerApp/DistributionCenterManagerBean/local
to:
java:app/OrderManagerEJB/DistributionCenterManagerBean!services.ejb.DistributionCenterManager
any help will be apprecite.
thanks!
Regards,
duanxz
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633804#633804]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[jBPM Development] - JBPM5 - Human task not getting completed
by vmaroli
vmaroli [http://community.jboss.org/people/vmaroli] created the discussion
"JBPM5 - Human task not getting completed"
To view the discussion, visit: http://community.jboss.org/message/610723#610723
--------------------------------------------------------------
I am trying out a sample process with a human task. Configured persistence for both Task server and process instnace in postgresql. Process flow is stopping at the human task as expected. After this I am completing the task using a human task client. Problem is that after this the process is not proceeding to complete. I am using JPAKnowledgeService and CommandBasedWSHumanTaskHandler. Is there anything additional need to be done for completing the process another than invoking the task api at task server ?
Is there any significance to the task name & name we give to the Human Task in the process ?
Code used for starting process.
Logger logger = Logger.getLogger(this.getClass().getName());
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
logger.info("Loading process definition");
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource(processDefinition), ResourceType.BPMN2);
kbase = kbuilder.newKnowledgeBase();
Properties properties = new Properties();
properties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
properties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory");
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
logger.info("create session");
ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, config, env );
int sessionId = ksession.getId();
logger.info("Session Id : "+sessionId);
logger.info("Registering Human Task listener");
CommandBasedWSHumanTaskHandler cbHandler = new CommandBasedWSHumanTaskHandler(ksession);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", cbHandler);
ksession.startProcess("com.ht.test");
Human Task Service
public class HumanTaskService {
private TaskService taskService = null;
private TaskServiceSession taskSession = null;
public HumanTaskService(EntityManagerFactory emFactory) {
Logger logger = Logger.getLogger(this.getClass().getName());
logger.info("Initializing Human Task Service");
SystemEventListener systemEventListener = SystemEventListenerFactory.getSystemEventListener();
taskService = new TaskService(emFactory, systemEventListener);
taskSession = taskService.createSession();
taskSession.addUser(new User("Administrator"));
}
public void addUser(String userId) {
Logger logger = Logger.getLogger(this.getClass().getName());
logger.info("Adding user "+userId);
taskSession.addUser(new User(userId));
}
public void startTaskService() {
Logger logger = Logger.getLogger(this.getClass().getName());
logger.info("Starting Human Task Service");
MinaTaskServer server = new MinaTaskServer( taskService );
Thread thread = new Thread( server );
thread.start();
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/610723#610723]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[JBoss AS7 Development] - Username xa does NOT have role ${abxtax.user.rolename}
by Alvar Hanso
Alvar Hanso [http://community.jboss.org/people/alvar_hanso] created the discussion
"Username xa does NOT have role ${abxtax.user.rolename}"
To view the discussion, visit: http://community.jboss.org/message/633709#633709
--------------------------------------------------------------
I must admit I don't really know a lot about JBoss, but I am migrating an application from JBoss 6 to 7.
Now I get this error when I try to login:
17:53:10,584 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Security checking request GET /abx-tax/csm
17:53:10,584 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) Checking constraint 'SecurityConstraint[CSMServlet]' against GET /csm --> true
17:53:10,585 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Calling hasUserDataPermission()
17:53:10,586 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) User data constraint has no restrictions
17:53:10,587 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Calling authenticate()
17:53:10,607 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Authenticated 'xa' with type 'BASIC'
17:53:10,607 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Calling accessControl()
17:53:10,609 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) Checking roles GenericPrincipal[xa(abx_tax_admin,abx_tax_user,)]
17:53:10,610 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) Username xa does NOT have role ${abxtax.user.rolename}
17:53:10,611 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) No role found: ${abxtax.user.rolename}
17:53:10,612 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) Username xa does NOT have role ${abxtax.admin.rolename}
17:53:10,613 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-9090-1) No role found: ${abxtax.admin.rolename}
17:53:10,614 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-9090-1) Failed accessControl() test
${abxtax.admin.rolename} is used in a web.xml file in the deployed WAR.
What could be the reason for this error?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633709#633709]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months