[jBPM] - jBPM4.3 on Weblogic 9.2
by Abhishek Chikane
Abhishek Chikane [http://community.jboss.org/people/abhishek.chikane%40gmail.com] created the discussion
"jBPM4.3 on Weblogic 9.2"
To view the discussion, visit: http://community.jboss.org/message/545533#545533
--------------------------------------------------------------
Hi,
I am installing jBPM 4.3 on Weblogic 9.2. I followed falling steps.
1) Added all the jars (78 jars from jBPM lib directory) on Weblogic classpath.
2) Added the jbpm.hibernate.cfg.xml, jbpm.cfg.xml, logging.properties inside my application. (Put on classpath)
3) Here are the xml files details,
*jbpm.hibernate.cfg.xml*
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">JbpmDS</property>
<property name="jndi.url">t3://localhost:7001</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="show_sql">false</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
</session-factory>
</hibernate-configuration>
*jbpm.cfg.xml*
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml"/>
<import resource="jbpm.tx.hibernate.cfg.xml"/>
<import resource="jbpm.tx.jta.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml"/>
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm.console.cfg.xml" />
</jbpm-configuration>
4) Created a server directory and added a Java option - -Dorg.jbpm.report.engine.dir and copied the unzipped report zip file and jbpm reports jar file to that directory.
5) Created datasource named JbpmDS and created all the tables(Oracle db).
The deployment works fine without error. But now I am facing two problems.
1) The jbpm console did not allow to login. *Authentication failure* on weblogic error. I have following entries into tables.
*JBPM4_ID_USER*
1 0 abhishek abhishek Abhishek Chikane mailto:achikane@ccrn.com achikane(a)ccrn.com
*JBPM4_ID_GROUP*
1 0 administrator administrator security-role
*JBPM4_ID_MEMBERSHIP*
1 0 1 1
Also I have got this notice in weblogic log.
<Jun 1, 2010 1:03:34 AM IST> <Notice> <Security> <BEA-090078> <User abhishek in security realm myrealm has had 5 invalid login attempts, locking account for 30 minutes.>
I haven't created any user on weblogic. Is it due to the role type (security-role)? Can you please help to resolve this issue?
2) When I try to run the process I got this exception.
org.hibernate.TransactionException: Could not register synchronization for container transaction
at org.hibernate.transaction.CMTTransaction.begin(CMTTransaction.java:76)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
at org.jbpm.pvm.internal.tx.HibernateSessionResource.(HibernateSessionResource.java:44)
at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:87)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:437)
Can anybody verify and give me tips why this error is occurring?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545533#545533]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss AOP] - Maven plugin annotations parsing
by Sergey Graschenko
Sergey Graschenko [http://community.jboss.org/people/Sintetik7] created the discussion
"Maven plugin annotations parsing"
To view the discussion, visit: http://community.jboss.org/message/545505#545505
--------------------------------------------------------------
Hi,
I'm new to AOP. I'm trying to create a simple aspect and include it in a war deployed in JBossAS, built with maven.
I've got it working with jboss-aop.xml descriptor but I can't figure out how to do this with annotations.
My pom.xml includes:
<plugin> <groupId>org.jboss.maven.plugins</groupId> <artifactId>maven-jbossaop-plugin</artifactId> <version>2.1.3.GA</version> <executions> <execution> <id>compile</id> <configuration> <suppress>false</suppress> <includeProjectDependency>true</includeProjectDependency> <aoppaths><aoppath>${basedir}/src/main/resources/META-INF/jboss-aop.xml</aoppath></aoppaths> <includes><include>com/blah/Blah.class</include></includes> </configuration> <goals><goal>compile</goal></goals> </execution> </executions> </plugin>
And my jboss-aop.xml :
<aop xmlns="urn:jboss:aop-beans:1.0"> <aspect scope="PER_VM"/>
<bind pointcut="execution(* com.blah.Blah->*(..))"> <advice name="trace" aspect="com.blah.MyAspect"/> </bind> </aop>
This way it works, I get all the classes weaved at compile-time.
But then I remove jboss-aop.xml and inculde annotations in MysAspect.java:
@Aspect (scope = Scope.PER_VM) public class MyAspect{
@Bind (pointcut="execution(* com.blah.Blah->*(..))") public Object trace(Invocation invocation) throws Throwable {
....
As I see it, maven plugin just ignores any annotation processing.
[INFO] [jbossaop:compile {execution: compile}]
[INFO] [no comp needed] ...
Is there any way to weave classes with annotations with maven-jbossaop-plugin ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545505#545505]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months