Hi,
Atlast able to execute your code.
but it is failing in //UserTransaction ut = (UserTransaction) new InitialContext().lookup( "java:comp/UserTransaction" );
8:58:50,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) javax.naming.NameNotFoundException: unable to find a bound object at name ''java:comp/UserTransaction"
18:58:50,084 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)
18:58:50,088 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at javax.naming.InitialContext.lookup(Unknown Source)
18:58:50,092 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at main.java.com.sample.processserver.TaskProcessServlet.processRequest(TaskProcessServlet.java:88)
18:58:50,098 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at main.java.com.sample.processserver.TaskProcessServlet.doGet(TaskProcessServlet.java:263)
18:58:50,103 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
18:58:50,107 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
18:58:50,111 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
18:58:50,117 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:58:50,122 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
18:58:50,127 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
18:58:50,132 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
18:58:50,137 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
18:58:50,143 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
18:58:50,148 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18:58:50,153 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:58:50,158 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
18:58:50,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
18:58:50,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
18:58:50,173 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
18:58:50,178 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) at java.lang.Thread.run(Unknown Source)
18:58:56,128 WARN [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-4) Creating RulesRepository with default username.
18:58:56,139 INFO [stdout] (http-localhost-127.0.0.1-8080-4) =============== session-guest-1018
18:58:56,144 INFO [stdout] (http-localhost-127.0.0.1-8080-4) =============== session-guest-1018
Could u pls tell me how to proceed with this.