[JBoss Portal Users] - Running tests using testng
by pjputhenvila
Hi
When I try to run came along with the Sample hotel booking app, I am getting this exception.
FAILED: testLogin
java.lang.NullPointerException
at java.lang.String.startsWith(String.java:1422)
at java.lang.String.startsWith(String.java:1451)
at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:189)
at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:222)
at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:139)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
at org.jboss.seam.example.booking.test.LoginTest.testLogin(LoginTest.java:52)
... Removed 22 stack frames
FAILED: testLoginComponent
java.lang.NullPointerException
at org.jboss.seam.example.booking.test.LoginTest$1.testComponents(LoginTest.java:24)
at org.jboss.seam.mock.AbstractSeamTest$ComponentTest.run(AbstractSeamTest.java:162)
at org.jboss.seam.example.booking.test.LoginTest.testLoginComponent(LoginTest.java:36)
... Removed 22 stack frames
===============================================
org.jboss.seam.example.booking.test.LoginTest
Tests run: 2, Failures: 2, Skips: 0
===============================================
===============================================
seamBookingPortlet
Total tests run: 2, Failures: 2, Skips: 0
===============================================
Please help me to sort this out, please
Philip
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252529#4252529
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252529
15 years, 5 months
[EJB] - Not able to Deploy Local ejbs across multiple ears
by anandlramadurg
I have my ears something like this,
MyEar1.ear
|
myEjbs.jar
MyEar2.ear
|
myEjbs.jar
myEjbs.jar expose only local interfaces, When I deploy both ear files in same jboss instance, MyEar1.ear will be deployed succesfully. When server tries to deploy MyEar2.ear it fails because it cannot deploy myEjbs.ar since same ejb(s) with same jndi are already deployed in MyEar1.ear.
Exact exception I am getting is,
javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=MySession,service=EJB already registered.
So,
My question here is, In JBoss, You cannot deploy same ejbs with same local jndi names across multiple ears???
However same hierarchy works fine in Weblogic.
In jboss "Local Ejb" means local to server instance (hence you cannot have same ejb with same jndi across ears ) In case of Weblogic, "Local Ejb" means local to EAR. or I am wrong ???
I am using , JBoss 4.2.0 CP06, EJB2
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252528#4252528
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252528
15 years, 5 months