[jBPM] - JBPM 5.1 Evaluation Sample Exceptions
by Billy Bartels
Billy Bartels [http://community.jboss.org/people/billybartels] created the discussion
"JBPM 5.1 Evaluation Sample Exceptions"
To view the discussion, visit: http://community.jboss.org/message/612616#612616
--------------------------------------------------------------
I installed and started a new JBPM 5.1 instance from the installer ("ant install.demo, ant start.demo")
I went to the jbpm-console and I can saw the "Evaluation" process. I clicked "Start" button and it popped up the "Start Performance Evaluation" form. I filled in my name and some messages in the text box, after I clicked "Complete" button then it blew up, throwing the following exceptions:
-------------------------
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not commit session or rollback
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.RuntimeException: Could not commit session or rollback
org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:317)
org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:299)
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:222)
org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:245)
org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:80)
org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:195)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.RuntimeException: Unable to rollback transaction
org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:189)
org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:314)
org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:299)
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:222)
org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:245)
org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:80)
org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:195)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.IllegalStateException: BaseTransaction.rollback - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:160)
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114)
org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:170)
org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:183)
org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:314)
org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:299)
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:222)
org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:245)
org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:80)
org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:195)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.
JBoss Web/2.1.3.GA
-------------------------
Any ideas?
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612616#612616]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Web Services] - problem in deploying web service as a .war file in jboss-6.0.0.Final
by Ritesh Dwa
Ritesh Dwa [http://community.jboss.org/people/ritesh163] created the discussion
"problem in deploying web service as a .war file in jboss-6.0.0.Final"
To view the discussion, visit: http://community.jboss.org/message/612319#612319
--------------------------------------------------------------
hello everyone,
I am developing web service as a web application and it's running fine in tomcat 7. But now I am shifting this web service to JBoss 6.0.0. As I deploy into JBoss, error occurs:
17:34:37,687 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfs:///D:/jbossAS-6/jboss-6.0.0.Final/server/default/deploy/WebServicetest.war state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentExc
eption: Error during deploy: vfs:///D:/jbossAS-6/jboss-6.0.0.Final/server/default/deploy/WebServicetest.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
......
Caused by: java.lang.Error: Error visiting "/D:/jbossAS-6/jboss-6.0.0.Final/server/default/deploy/WebServicetest.war/WEB-INF/lib/webservices-tools.jar/1.0/com/sun/codemodel/JConditional.class"
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
... 37 more
Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ 1.0/com/sun/codemodel/JConditional.class / BaseClassLoader@1d630f5{vfs:///D:/jbossAS-6/jboss-6.0.0.Final/server/default/deploy/WebServicetest.war}, visitor: org.jboss.scanning.hierarchy.plugins.HierarchyTypeVisitor@4
25b08
at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.GA]
at org.jboss.scanning.hierarchy.plugins.HierarchyIndexScanningPlugin.visit(HierarchyIndexScanningPlugin.java:91) [:1.0.0.GA]
... 49 more
Caused by: java.lang.ClassNotFoundException: 1.0.com.sun.codemodel.JConditional
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_18]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_18]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_18]
... 53 more
Can anyone suggest me , what's the problem is? I am using web service in JBoss for the first time with JDK 1.6. The web service was developed on NetBeans 7 IDE.
Am I using the correct version of JBoss? May be I should use JBossWS- metro instead?
Thank you in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612319#612319]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
Re: [jboss-user] [JBoss Tools] - Chasing a White Rabbit with JBoss Tools 3.3 M2
by xsa lefter
xsa lefter [http://community.jboss.org/people/xsalefter] commented on
"Chasing a White Rabbit with JBoss Tools 3.3 M2"
To view all comments on this blog post, visit: http://community.jboss.org/community/tools/blog/2011/06/28/fast-faster-jb...
--------------------------------------------------
> We are working on splitting out the SOA functionality (Teiid, Modeshape, Drools and jbpm) from the core distribution since the SOA tooling historically are not following the same release cycle of the core and thus at times it is beneficial that they can release their final version a bit delayed from the core. That means that for this milestone the main updatesite does not contain SOA tools but will for now be on a separate updatesite.
I think this is a good idea. I'm just eclipse user, but I think would be great if every "tools" in this project have independent release / independent eclipse update site. So plain user like me shouldn't wait until all the "tools" released for get final release for particular functionality.
Anyway, congratulations for this release.
--------------------------------------------------
14 years, 9 months
[jBPM] - Is there a way to make ksession aware service task running in web console?
by Bruce Cui
Bruce Cui [http://community.jboss.org/people/brucecui] created the discussion
"Is there a way to make ksession aware service task running in web console?"
To view the discussion, visit: http://community.jboss.org/message/612696#612696
--------------------------------------------------------------
Hi,
I open this new thread to draw some attention. I'm looking for a solution to drive batch processes by jBPM5. Since I'm new to it, I have fought with various problems and finally made some progress by deeper study and help from the forum, especially from Kris.
Currenly I'm stuck at one key problem. I want to put a time consuming task in the main progress. But I found that once such a progress started from web console, it would not be able for other processes to make any movement. It seems that the console is running all processes in one main thread.
So I tried to pass the processInstance as a parameter from the process to the WorkItemHandler at runtime. And the WorkItemHandler will start a new thread of an object which contains the actual logic in its run() method. Once the thread is done, at the end of its run() method, it sends the signal back via the reference of the processInstance.
Local running was fine, but once I put it up to console war and tried to start the process from console, I got IOException due to WorkItem persistance problem.
Kris gave me another advice, that to pass the ksession to the WorkItemHandler when registering it. But a problem is, the pattern of how the console create the WorkItemHandlers are already there in the console code. I don't know how to make the console recognize and pass the kession automatically without changing any code.
Can anyone help to advise if there is an elegant way to make a service task both ksession aware, and also can work in console environment? If there is none, is it possible to change the code to make this happen, and how? Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612696#612696]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Messaging] - How get payload from a message ?
by everson .
everson . [http://community.jboss.org/people/everjava] created the discussion
"How get payload from a message ?"
To view the discussion, visit: http://community.jboss.org/message/612602#612602
--------------------------------------------------------------
Hi!
i'm using jboss esb and in my message body there's an object, like Person. When something get wrong the message will go to queue/DLQ on jboss.
I would like get that object Person again from queue/DLQ. I'm trying the code below, but i can't ... Anyone know how can I do that ?
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) iniCtx.lookup("ConnectionFactory");
connection = queueConnectionFactory.createQueueConnection();
queue = (Queue) iniCtx.lookup("/queue/DLQ");
session = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
connection.start();
System.out.println("Connection Started");
MessageConsumer consumer = session.createConsumer(queue);
ObjectMessageProxy omp = (ObjectMessageProxy) consumer.receive(2000);
System.err.println( omp.getMessage()); //show me it ---> JBossMessage[21445453972357131]:PERSISTENT
JBossMessage jbm = omp.getMessage();
When I use jbm.getPayload(), get it:
<Envelope>
<Header xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/08/addressing http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:To>jms:localhost:1099#queue/my_esb</wsa:To>
<jbossesb:java.naming.factory.initial
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">org.jnp.interfaces.NamingContextFactory</jbossesb:java.naming.factory.initial>
<jbossesb:java.naming.provider.url
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">localhost:1099</jbossesb:java.naming.provider.url>
<jbossesb:java.naming.factory.url.pkgs
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">org.jnp.interfaces</jbossesb:java.naming.factory.url.pkgs>
<jbossesb:destination-type
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">queue</jbossesb:destination-type>
<jbossesb:destination-name
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">queue/my_esb</jbossesb:destination-name>
<jbossesb:specification-version
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">1.1</jbossesb:specification-version>
<jbossesb:connection-factory
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">XAConnectionFactory</jbossesb:connection-factory>
<jbossesb:persistent xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">true</jbossesb:persistent>
<jbossesb:acknowledge-mode
xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">AUTO_ACKNOWLEDGE</jbossesb:acknowledge-mode>
<jbossesb:transacted xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">false</jbossesb:transacted>
<jbossesb:type xmlns:jbossesb=" http://schemas.jboss.com/ws/2007/01/jbossesb http://schemas.jboss.com/ws/2007/01/jbossesb">urn:jboss/esb/epr/type/jms</jbossesb:type>
<wsa:MessageID>b28656d6-cd7c-4e02-b78f-393c6bd8d3a8</wsa:MessageID>
</Header>
<Context />
<Body>
<Content>
<Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5kZWZhdWx0RW50cnk=</Key>
<Value>
<marshalunmarshal>
<plugin-type>urn:xml/marshalunmarshal/plugin/serialization</plugin-type>
rO0ABXNyADpici5zZW5haS5zYy5pbnRlZ3JhY2FvLmNvbW1vbi5kdG8uQ29sYWJvcmFkb3JJbnRlZ3JhY2FvRFRPAAAAAAAAAAECABZMABJjaWRhZGVOYXR1cmFsaWRhZGV0ABJMamF2YS9sYW5nL1N0cmluZztMAA1jb250cmF0b3NMaXN0dAAQTGphdmEvdXRpbC9MaXN0O0wAA2NwZnEAfgABTAAPZGF0YUZhbGVjaW1lbnRvdAAQTGphdmEvdXRpbC9EYXRlO0wACmVtYW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5OTk5NjYzM3BwcHQAAzI1NnEAfgBqc3EAfgBlcHQACUx1bHV6aW5oYXQACDk5OTk2NjMzcHBwdAADMjU2cQB+AGp4
</marshalunmarshal>
</Value>
</Content>
</Body>
<Attachment />
<Properties>
<Property>
<Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS50cmFuc3BvcnQudHlwZQ==</Key>
<Value>rO0ABX5yAC9vcmcuamJvc3Muc29hLmVzYi5jb21tb24uRW52aXJvbm1lbnQkVHJhbnNwb3J0cwAAAAAAAAAAEgAAeHIADmphdmEubGFuZy5FbnVtAAAAAAAAAAASAAB4cHQAA0pNUw==</Value>
</Property>
<Property>
<Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5zb3VyY2U=</Key>
<Value>rO0ABXQAWFBvcnRSZWZlcmVuY2UgPCBqbXM6bG9jYWxob3N0OjEwOTkjcXVldWUvc2VuYWlfaW50ZWdyYWNhb19wZXNzb2FfY29sYWJvcmFkb3JhY3Rpb25fZXNiID4=</Value>
</Property>
</Properties>
</Envelope>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612602#612602]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[EJB3] - @PostConstruct not inoked in ear packaging
by Tomas Bartalos
Tomas Bartalos [http://community.jboss.org/people/barti] created the discussion
"@PostConstruct not inoked in ear packaging"
To view the discussion, visit: http://community.jboss.org/message/612722#612722
--------------------------------------------------------------
Hi,
I have a very basic problem. I have an ejb with *@PostConstruct annotated method*. When I deploy this ejb packaged as jar to jboss, everything works fine.
But when I package my ejb to ear archive, the *@Postconstruct method is never invoked.*
This means there must be something wrong with my ear packaging, but I have no idea what is the problem.
Here follows my ejb:
@Stateless
public class TestBeanImpl implements TestBean{
public TestBeanImpl() {
System.out.println("Test bean was instantiated");
}
@PostConstruct
public void afterConstruction() {
System.out.println("Test bean after construction");
}
@Override
public void performTest() {
System.out.println("Test was performed");
}
}
When I invoke performTest() method in jar packaging, the output is:
Test bean was instantiated
Test was performed
*But when I invoke performTest() in ear packaging, the output is:*
Test bean was instantiated
Test bean after construction
Test was performed
Here follows my ear package structure:
/
-- lib
--META-INF
/--application.xml
--postconstruct-test-ejb.jar
Here is my content of application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application>
<display-name>postconstruct-test-ear</display-name>
<module>
<ejb>postconstruct-test-ejb.jar</ejb>
</module>
</application>
*My jboss version: Jboss 6.0.0.Final*
I really don't know what is wrong here, please help
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612722#612722]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months