[JBoss JIRA] Created: (JBAS-3485) Test failure - org.jboss.test.web.test.WebIntegrationUnitTestCase
by Rajesh Rajasekaran (JIRA)
Test failure - org.jboss.test.web.test.WebIntegrationUnitTestCase
-----------------------------------------------------------------
Key: JBAS-3485
URL: http://jira.jboss.com/jira/browse/JBAS-3485
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Suite
Affects Versions: JBossAS-4.0.5.CR1
Reporter: Rajesh Rajasekaran
Fix For: JBossAS-4.0.5.CR1
org.jboss.test.web.test.WebIntegrationUnitTestCase
testcase: testEJBOnStartupServlet
Attached below are the test errors and the server log.
http://cruisecontrol.jboss.com/cc/artifacts/jboss-4.0-testsuite-sun-1.4/2...
http://cruisecontrol.jboss.com/cc/artifacts/jboss-4.0-testsuite-sun-1.4/2...
ERROR:
The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Failed to call OptimizedEJB
org.jboss.test.web.servlets.EJBOnStartupServlet.processRequest(EJBOnStartupServlet.java:112)
org.jboss.test.web.servlets.EJBOnStartupServlet.doGet(EJBOnStartupServlet.java:127)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
</pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
org.jboss.test.web.servlets.EJBOnStartupServlet.processRequest(EJBOnStartupServlet.java:106)
org.jboss.test.web.servlets.EJBOnStartupServlet.doGet(EJBOnStartupServlet.java:127)
SERVER LOG:
2006-08-07 15:10:14,377 DEBUG [org.jboss.test.web.servlets.EJBOnStartupServlet] failed
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: OptimizedEJB not bound]
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1067)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.test.web.servlets.EJBOnStartupServlet.init(EJBOnStartupServlet.java:67)
2006-08-07 15:10:14,332 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbosstest]] Servlet /jbosstest threw load() exception
java.lang.NoClassDefFoundError: org/jboss/test/web/util/EJBManifestClass
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
at java.lang.Class.getConstructor0(Class.java:1930)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Updated: (JBMESSAGING-410) java:/JmsXA in no-tx context does not work the same way as JBossMQ
by Ovidiu Feodorov (JIRA)
[ http://jira.jboss.com/jira/browse/JBMESSAGING-410?page=all ]
Ovidiu Feodorov updated JBMESSAGING-410:
----------------------------------------
Priority: Critical (was: Major)
> java:/JmsXA in no-tx context does not work the same way as JBossMQ
> ------------------------------------------------------------------
>
> Key: JBMESSAGING-410
> URL: http://jira.jboss.com/jira/browse/JBMESSAGING-410
> Project: JBoss Messaging
> Issue Type: Bug
> Components: Configuration and Management
> Affects Versions: 1.0.1.CR2
> Reporter: Elias Ross
> Assigned To: Clebert Suconic
> Priority: Critical
> Fix For: 1.0.1.CR5
>
>
> The same code I wrote that uses java:/JmsXA in a non-transacted environment with JBossMQ does not work with JBoss Messaging. And actually the same code does work correctly with SonicMQ as well, using the JCA adaptor with the Sonic XA connection factory.
> Why allow the use java:/JmsXA without transactions? It makes sense to use a cached connection manager anyway, like you would with a database. And anyway, should be addressed for compatibility.
> The following code *should* successfully send a message to a queue running without a transaction. Currently, it doesn't seem to do anything and no usage warnings are produced.
> QueueConnectionFactory queueCF = (QueueConnectionFactory)new InitialContext.lookup("java:/JmsXA");
> ...
> QueueConnection queueConnection = queueCF.createQueueConnection();
> QueueSession queueSession =
> queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
> QueueSender queueSender = queueSession.createSender(queue);
> ObjectMessage om = queueSession.createObjectMessage();
> queueSender.send(om);
> queueSender.close();
> queueSession.close();
> queueConnection.close();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months