[JBoss Microcontainer] - Bean for Hashtable choses wrong ctor
by arjan tijms
arjan tijms [http://community.jboss.org/people/atijms] created the discussion
"Bean for Hashtable choses wrong ctor"
To view the discussion, visit: http://community.jboss.org/message/589768#589768
--------------------------------------------------------------
On JBoss AS 6, I'm trying to instantiate a bean that's a Hashtable:
<bean name="JNDI" class="java.util.Hashtable">
<constructor class="java.util.Map">
<parameter>
<map class="java.util.HashMap" keyClass="java.lang.String" valueClass="java.lang.String">
<entry>
The problem is that the container keeps selecting the wrong constructor, even though the right one is specified:
Part of the exception that I get:
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Instantiated: name=JNDI state=Described: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[int] actual=[java.util.Hashtable]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:404) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:158) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:102) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:81) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:109) [jboss-aop-mc-int.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:67) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
Is there a way to enforce more strictly that I want the java.util.Map contructor and not the int one?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589768#589768]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JBoss Tools] - Graph Editor Continued: GMF and Graphiti Compared
by Koen Aers
Koen Aers [http://community.jboss.org/people/koen.aers%40jboss.com] modified the blog post:
"Graph Editor Continued: GMF and Graphiti Compared"
To view the blog post, visit: http://community.jboss.org/community/tools/blog/2011/02/25/graph-editor-c...
--------------------------------------------------------------
Next month at http://www.eclipsecon.org/2011/ EclipseCon I'll be continuing the saga of the Graph Editor. This story actually starts back in 2005, when I was working on the very first graphical editor for jBPM 3. I was using the Eclipse http://www.eclipse.org/gef/ Graphical Editing Framework (GEF) and became very frustrated with the lack of good documentation. So for my own records, I kept notes as to how the application was put together. The result served as the base for a number of talks and tutorials on GEF at the EclipseWorld (2005, 2006 and 2007) and EclipseCon (2006, 2007 and 2008) conferences. Should you be interested, I have attached http://community.jboss.org/servlet/JiveServlet/download/3646-27512/Develo... the last version of this tutorial that I presented at EclipseCon 2008.
In the meantime, two other frameworks have emerged in the Eclipse realm that can be used to create such rich graphical editors. The http://www.eclipse.org/modeling/gmp/ Graphical Modeling Framework (GMF) has been around for a very long time even and is well matured. It builds on top of GEF and the http://www.eclipse.org/modeling/emf/ Eclipse Modeling Framework (EMF). It also has a powerful tools suite that can be used to quickly model and generate your application. Graphiti is a bit more recent and is currently in incubation at Eclipse. http://www.eclipse.org/graphiti/ Graphiti also builds on top of GEF and uses EMF to store its graphical details. EMF is also the preferred way to serialize the semantic model.
During the previous year, I have been using GMF intensively while forging a http://koentsje.blogspot.com/2011/02/business-rules-and-new-icons.html prototype BPMN2 editor for http://www.jboss.org/jbpm jBPM 5. Later that same year I was asked to investigate Graphiti as a candidate technology for a BPMN2 editor. Just like 6 years ago, I have kept notes on the use of both of these technologies. It was only a small step to turn these notes into a presentation comparing both technologies. So I am happy to have been accepted to share this experience at the upcoming EclipseCon conference.
If you expected to see the results of the comparison in this post, I'll have to disappoint you. I will probably write up an article later on but in the meantime I'll leave the scoop to the EclipseCon attendees. The advice is to http://www.eclipsecon.org/2011/registration/?page=registration register for EclipseCon and attend http://www.eclipsecon.org/2011/sessions/?page=sessions&id=2179 my session on Tuesday March 22nd at 2:30 pm. I hope I will see a lot of you!
Cheers,
Koen
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/community/tools/blog/2011/02/25/graph-editor-c...]
13 years, 9 months
[JBoss Tools] - Build XulRunner 1.9 on Linux
by Maxim Areshkau
Maxim Areshkau [http://community.jboss.org/people/mareshkau] modified the document:
"Build XulRunner 1.9 on Linux"
To view the document, visit: http://community.jboss.org/docs/DOC-16537
--------------------------------------------------------------
* Download source code from mozilla using followinn commandmkdir xulrunner19
cd xulrunner19
cvs -d :pserver: mailto:anonymous@cvs-mirror.mozilla.org anonymous@cvs-mirror.mozilla.org:/cvsroot co -r FIREFOX_3_0_RELEASE mozilla/client.mk
cd mozilla
make -f client.mk checkout MOZ_CO_PROJECT=xulrunner
* Create a configuration file xulrunner.mozconfig http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.m... Information about mozilla connfig file on Mozila An example of configuration file is here$topsrcdir/xulrunner/config/mozconfig
ac_add_options --enable-application=xulrunner
ac_add_options --disable-debug
ac_add_options --disable-tests
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../xulrunner_build
* Register file in Systemexport MOZCONFIG=./xulrunner.mozconfig
* Build xulrunnermake -f client.mk build
* Register xulrunner for user./xulrunner --register-user
* Register xulrunner for systemsudo ./xulrunner --register-global
* Information about xulrunner registred for user here/home/user_name/.gre.d/1.9.conf
* Information about xulrunner which was registred globaly here/etc/gre.d/1.9.conf
* View firefox/xulrunner build optionsabout:buildconfig
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16537]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 9 months
[jBPM] - Re: Unable to set the mail configuration properties in JBPM 4.3
by Rohit Wadke
Rohit Wadke [http://community.jboss.org/people/rohya] created the discussion
"Re: Unable to set the mail configuration properties in JBPM 4.3"
To view the discussion, visit: http://community.jboss.org/message/589683#589683
--------------------------------------------------------------
hi Maciej,
I am trying to send mail from client machines. I got following error..
SEVERE: >>org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@eb203b
>>javax.mail.SendFailedException: Invalid Addresses
>>com.sun.mail.smtp.SMTPAddressFailedException: 451 Greylisted, please try again in 300 seconds
>>
>> at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1061)
>> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
>> at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:51)
>> at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)
>> at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
>> at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
>> at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
>>...
How to authenticate mail ?? do we need to send mail id , password to mail server?? I am not able to send mail to other domain..
Thanks in advance...
Rohit
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589683#589683]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JNDI and Naming] - How to do global JNDI lookup
by Viggo Navarsete
Viggo Navarsete [http://community.jboss.org/people/viggo.navarsete] created the discussion
"How to do global JNDI lookup"
To view the discussion, visit: http://community.jboss.org/message/589706#589706
--------------------------------------------------------------
Hi,
given that my global JNDI tree looks like this:
h1. global JNDI Namespace
+- UserTransactionSessionFactory (proxy: $Proxy175 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
+- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
+- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
+- SecureDeploymentManager (class: org.jnp.interfaces.NamingContext)
| +- remote[link -> DeploymentManager] (class: javax.naming.LinkRef)
+- SecureManagementView (class: org.jnp.interfaces.NamingContext)
| +- remote[link -> ManagementView] (class: javax.naming.LinkRef)
+- DeploymentManager (class: org.jboss.aop.generatedproxies.AOPProxy$4)
+- mds-ear-1.3.1-SNAPSHOT (class: org.jnp.interfaces.NamingContext)
| +- RbacBean (class: org.jnp.interfaces.NamingContext)
| | +- local-com.tracetracker.mds.adm.business.RbacLocal (class: Proxy for: com.tracetracker.mds.adm.business.RbacLocal)
| | +- local (class: Proxy for: com.tracetracker.mds.adm.business.RbacLocal)
| +- MasterDataBean (class: org.jnp.interfaces.NamingContext)
| | +- local (class: Proxy for: com.tracetracker.mds.adm.business.MasterDataLocal)
| | +- local-com.tracetracker.mds.adm.business.MasterDataLocal (class: Proxy for: com.tracetracker.mds.adm.business.MasterDataLocal)
| +- MasterDataXMLValidatorBean (class: org.jnp.interfaces.NamingContext)
| | +- local (class: Proxy for: com.tracetracker.mds.adm.business.MasterDataXMLValidatorLocal)
| | +- local-com.tracetracker.mds.adm.business.MasterDataXMLValidatorLocal (class: Proxy for: com.tracetracker.mds.adm.business.MasterDataXMLValidatorLocal)
| +- MDDValidatorBean (class: org.jnp.interfaces.NamingContext)
| | +- local (class: Proxy for: com.tracetracker.mds.adm.business.MDDValidatorLocal)
how do I write code to lookup MasterDataBean in JBoss 6.0.0.Final?
The convention is (as far as I know) this:
java:global[/<app-name>]/<module-name>/<bean-name>[!<fully-qualified-interface-name>]
which should translate to this code (but doesn't currently work!):
InitialContext ctx = new InitialContext();
Object obj = ctx.lookup( "java:global/mds-ear-1.3.1-SNAPSHOT/MasterDataBean" );
private MasterDataLocal masterDataService = (MasterDataLocal) obj;
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589706#589706]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - Dynamic linking of application forms to jBPM process
by Prachi Tonapi
Prachi Tonapi [http://community.jboss.org/people/prachit] created the discussion
"Dynamic linking of application forms to jBPM process"
To view the discussion, visit: http://community.jboss.org/message/589658#589658
--------------------------------------------------------------
I have following requirements in my application.
1. I have complex form builder requirement, which will generate the forms dynamically. These dynamic forms should be integrated with workflow. Will JBPM support this?
2. The content based routing in workflow might depend on the data captured through dynamic forms. How I can do it using jBPM. The process variables passed to step should be from dynamic forms.
3. The worflow needs to be designed by Business Users. Jbpm provides web based front-end for business users.- can i integrate this with my application with look and feel getting aligned to my application?
4. Can i decide the no. of parallel flows dynamically. I have predefined path (let's say activity X, human task - which will be done using application FORM). But at runtime (during process instance execution) user will define 5 or10 users need to carry out this task. Is this supportded?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589658#589658]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months