[Javassist] New message: "Re: Remove an interface from a Class"
by Arvind K
User development,
A new message was posted in the thread "Remove an interface from a Class":
http://community.jboss.org/message/528432#528432
Author : Arvind K
Profile : http://community.jboss.org/people/megalodon
Message:
--------------------------------------------------------------
Hello,
I do not think there should be anything wrong with the interface-removing part. You can verify this by printing the interface class names before and after you change them, if you need. I can think of 2 possibilities for the exception:
I would put my money on this one:
1. You are trying to modify a class that has already been loaded. This is not allowed by the JVM. You might have seen this thread in a forum that posts your same error: http://lists.jboss.org/pipermail/jboss-user/2009-March/152559.html. You might want to modify your class during load time in this case using a javaagent and classfiletransformer (or some other approach).
2. You might need a different context class loader to load the ContextBarItem class. The default CtClass.toClass() uses the context class loader of the current thread. You could use an overloaded Class:
public java.lang.Class *toClass*(java.lang.ClassLoader loader,
java.security.ProtectionDomain domain)
throws
suppose the object of ContextBarItem class is myCBI,
Class newClass = cc.toClass(myCBI.getClass().getClassloader(), myCBI.getClass().getProtectionDomain());
Check out http://www.csg.is.titech.ac.jp/~chiba/javassist/tutorial/tutorial.html#to... and Javassist API for more details. I'm not too clear on these concepts either.
-Arvind
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528432#528432
15 years, 10 months
[EJB 3.0] New message: "Re: howto setup jpa using oracle 10g unicode nvarchar2"
by Michael Glöckner
User development,
A new message was posted in the thread "howto setup jpa using oracle 10g unicode nvarchar2":
http://community.jboss.org/message/528413#528413
Author : Michael Glöckner
Profile : http://community.jboss.org/people/michael.gloeckner
Message:
--------------------------------------------------------------
Hi Wolfgang,
thanks for the quick answer.
I tried your suggestions and modify the standardjbosscmp-jdbc.xml. Unfortunatily these changes have been ignored.
I also updated my ojdbc14.jar to version 10.2.0.4.0 and changed my datasource from an <xa-datasource> to a <local-tx-datasource>.
Additional i created an additional type-mapping Oracle9iUNICODE and it looks like it got loaded.
2010-02-25 11:47:31,972 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] Starting jboss.jdbc:service=metadata
2010-02-25 11:47:32,050 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] Loading standardjbosscmp-jdbc.xml : file:/D:/jboss-portal-2.7.2/server/profile2/conf/standardjbosscmp-jdbc.xml
..
2010-02-25 11:47:32,378 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] added type-mapping: Oracle9i
2010-02-25 11:47:32,378 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] added type-mapping: Oracle9iUNICODE
2010-02-25 11:47:32,409 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] added type-mapping: Oracle8
2010-02-25 11:47:32,425 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] added type-mapping: Oracle7
..
2010-02-25 11:47:32,503 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] Started jboss.jdbc:service=metadata
However, if my application got deployed jpa still creates varchar2(255) for all string fields.
Do you know if there are any issues with jboss 4.2.3GA?
Any help would be appreciated!
Cheers,
Micha
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528413#528413
15 years, 10 months
[jBPM] New message: "Re: Advice regarding complex proccess modeling"
by Dan Mihai Ile
User development,
A new message was posted in the thread "Advice regarding complex proccess modeling":
http://community.jboss.org/message/528410#528410
Author : Dan Mihai Ile
Profile : http://community.jboss.org/people/mihai007
Message:
--------------------------------------------------------------
any idea about how to be notified when a subtask ends?
I mean I define a task in process xml, then an assignment handler for the task. There I set assignee as null and create 2 subtasks each assigned to a different user.
When the users complete the subtask I would like to be notified so that I could close the main task and so the process goes on.
In xml is easy, I just do:
<on event="end">
<event-listener class="ABC" />
</on>
But how can I add such an event to a subtask that was created during run-time?
P.S: having a timer to check endlessly for subtasks end does not count as it is not a viable solution.
Oh and using the jbpm 4.3 with the solution presented by http://community.jboss.org/people/saraswati.santanu to create the sub tasks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528410#528410
15 years, 10 months