[IronJacamar] - Hello World Example
by daedlus D
daedlus D [https://community.jboss.org/people/daedlus] created the discussion
"Hello World Example"
To view the discussion, visit: https://community.jboss.org/message/807155#807155
--------------------------------------------------------------
Hi ,
i have deployed the hello world rar example and i see the HelloWorldManagedConnectionFactory binded to jndi and is available using name
h6. java:/eis/HelloWorld
I have a simple ejb bean in which i look up this using below code:
h6. @Resource(mappedName = "java:/eis/HelloWorld")
private HelloWorldConnectionFactory connectionFactory;
i get below error
| | Caused by: javax.ejb.EJBException: java.lang.ClassCastException: org.jboss.jca.samples.helloworld.HelloWorldConnectionFactoryImpl cannot be cast to org.jboss.jca.samples.helloworld.HelloWorldConnectionFactory |
| | Caused by: java.lang.ClassCastException: org.jboss.jca.samples.helloworld.HelloWorldConnectionFactoryImpl cannot be cast to org.jboss.jca.samples.helloworld.HelloWorldConnectionFactory"}} |
what could be wrong? :s
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807155#807155]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - Re: jBPM Console Server can't find WorkItem Handler Implementation
by Stephan Pampel
Stephan Pampel [https://community.jboss.org/people/stephan_p] created the discussion
"Re: jBPM Console Server can't find WorkItem Handler Implementation"
To view the discussion, visit: https://community.jboss.org/message/807163#807163
--------------------------------------------------------------
I had the same problem recently and like to share my solution because it took me a lot of time to figure it out.
*1. Extract the jbpm-gwt-console-server.war*
Extract the jbpm-gwt-console-server.war in <server>/standalone/deployments/ (with 7zip), make sure the directory name is jbpm-gwt-console-server.war. Remove the jbpm-gwt-console-server.war file from the directory. Start the server and test if the console iscorrectly deployed. If not re the README.txt in the deployments folder and create a jbpm-gwt-console-server.war.dodeploy file
*2. Create .jars of your custom work item handlers*
If you are using Eclipse you can simply right click one the file you want to have in the jar an click export. The choose "JAR file" and in the next step select all the classes you want to include. Place your *.jar files in <server>/standalone/deployments/jbpm-gwt-console-server.war/WEB-INF/lib
*3. publicize your config files to the console*
Put your drools.rulebase.conf, drools.session.conf, workItemHandlers.conf etc. in the <server>/standalone/deployments/jbpm-gwt-console-server.war/WEB-INFclasses/META-INF so they can be found by the console.
Please test this and watch server.log for problems (maybe I have forgotten something).
Hope this helps someone
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807163#807163]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[Beginner's Corner] - Re: Time Out
by Michael Pellaton
Michael Pellaton [https://community.jboss.org/people/jochen89] created the discussion
"Re: Time Out"
To view the discussion, visit: https://community.jboss.org/message/804507#804507
--------------------------------------------------------------
Hello Guys
So we change to english. I hope I get where I want to. :-)
First off all, I don't think it's a startup problem. The application starts perfectely. The time out occures the moment I start this special method.
Maybe a quick try of explanation what happens in this method:
As I said on the original post, I didnt' do anything of this program and have also to find out whats happens actually.
In this method a list of products get's generated and the export to excel.
And if there are more then 100 products and it takes more then 2 minutes I get this *"request timed out"*
The code in the transaction-jboss-beans.xml file is:
<!-- Unit from transactionTimeout: Seconds -->
<property name="transactionTimeout">300000</property>
<property name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property>
<property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
I'm so sorry, but I really don't know where i find the original error message. :-( Ist it in a Log file?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804507#804507]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[Snowdrop] - EAP6 + Snowdrop compatible?
by _cp
_cp [https://community.jboss.org/people/_cp] created the discussion
"EAP6 + Snowdrop compatible?"
To view the discussion, visit: https://community.jboss.org/message/775439#775439
--------------------------------------------------------------
Is anyone here using EAP6 and Snowdrop with any success?
I'm using EAP6 (7.1.2.Final) and Snowdrop 2.0.2.Final and JBoss fails on startup looking for a missing module: org.jboss.interceptor. This module exists in AS7 but not in EAP.
Here's the exception:
+[Host Controller] Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java+
+:195) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java+
+:68) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126+
+) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123+
+) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.ja+
+r:1.6.0_27]+
+[Host Controller] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_27+
+]+
+[Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor+
+.java:886) [rt.jar:1.6.0_27]+
+[Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav+
+a:908) [rt.jar:1.6.0_27]+
+[Host Controller] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]+
+[Host Controller] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.+
+0.0.GA-redhat-1.jar:2.0.0.GA-redhat-1]+
+[Host Controller] Caused by: org.jboss.modules.ModuleNotFoundException: Module org.jboss.interceptor+
+:main is not found in local module loader @1835282 (roots: C:\Programs\jboss-eap-6.0\modules)+
+[Host Controller] at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126+
+) [jboss-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jb+
+oss-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jbos+
+s-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:+
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775439#775439]
Start a new discussion in Snowdrop at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years