Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
- Integration Testing with TestNG and embeddedEjb

- Integration Testing with TestNG and embeddedEjb

2007-08-13       - By EagleEye

 Back
I have a lot problems to let run Integration Tests.

The main problem is to grab the loaded Components from the Container.

It seems that they are not loaded. I'm not able to get the by hand from the
JNDI.

here the Request:

 | new FacesRequest() {
 |  
 |   @(protected)
 |   protected void invokeApplication() {
 |    
 |     Object test = JndiUtil.lookup("mediportal/KomunikatyManagerBean/local",
KomunikatyManagerBean.class);
 |     KomunikatyManager komunikatyManager = (KomunikatyManager) getInstance
(KomunikatyManagerBean.class);
 |     invokeMethod("#{komunikatyManager.nowy}");
 |   }
 |  
 | }.run();
 |

here the console output for this component, while starting embeddedEjb:

 | 12:40:11,812 INFO  [Initialization] Installing components...
 | 12:40:12,375 INFO  [Component] Component: komunikatyManager, scope:
CONVERSATION, type: STATEFUL_SESSION_BEAN, class: pl.alternativ.med.portal
.komunikaty.KomunikatyManagerBean, JNDI: mediportal/KomunikatyManagerBean/local
 |

and finally the error message:

 | 14:07:01,609 INFO  [Initialization] done initializing Seam
 | Start Nowy Test-- ---- ---- ---- ---- ---- ---- ---- ---
 | 14:07:01,734 INFO  [Ejb] stopping the embedded EJB container
 | 14:07:01,765 ERROR [AbstractKernelController] Internal error during
uninstall current state not found: name=jboss.j2ee:jar=test-build,name=MailMDB
,service=EJB3 state=**ERROR** error=javax.naming.NameNotFoundException:
DefaultJMSProvider not bound
 | 14:07:01,765 ERROR [AbstractKernelController] Internal error during
uninstall: toState=ControllerState@(protected){Not Installed} context=name=jboss
.j2ee:jar=test-build,name=MailMDB,service=EJB3 state=**ERROR** error=javax
.naming.NameNotFoundException: DefaultJMSProvider not bound
 | 14:07:01,765 ERROR [AbstractKernelController] Internal error during
uninstall current state not found: name=jboss.j2ee:jar=test-build,name
=PlikiKlientowMDB,service=EJB3 state=**ERROR** error=javax.naming
.NameNotFoundException: DefaultJMSProvider not bound
 | 14:07:01,765 ERROR [AbstractKernelController] Internal error during
uninstall: toState=ControllerState@(protected){Not Installed} context=name=jboss
.j2ee:jar=test-build,name=PlikiKlientowMDB,service=EJB3 state=**ERROR** error
=javax.naming.NameNotFoundException: DefaultJMSProvider not bound
 | 14:07:01,796 INFO  [SessionFactoryImpl] closing
 | 14:07:01,796 INFO  [SchemaExport] Running hbm2ddl schema export
 | 14:07:01,796 INFO  [SchemaExport] exporting generated schema to database
 | 14:07:01,812 INFO  [SchemaExport] schema export complete
 | FAILED: testNowyKomunikat
 | org.jbpm.util.JndiLookupException: couldn't fetch 'mediportal
/KomunikatyManagerBean/local' from jndi
 |   at org.jbpm.util.JndiUtil.lookup(JndiUtil.java:41)
 |   at pl.alternativ.med.portal.test.komunikaty.KomunikatyTest$1
.invokeApplication(KomunikatyTest.java:49)
 |   at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:489)
 |   at pl.alternativ.med.portal.test.komunikaty.KomunikatyTest
.testNowyKomunikat(KomunikatyTest.java:54)
 | Caused by: javax.naming.NameNotFoundException: mediportal not bound
 |   at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
 |   at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
 |   at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
 |   at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
 |   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
 |   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
 |   at javax.naming.InitialContext.lookup(Unknown Source)
 |   at org.jbpm.util.JndiUtil.lookup(JndiUtil.java:36)
 |   ... 24 more
 | ... Removed 21 stack frames
 |
 |


I'm really running out of ideas! Before the startup is looking good,

init the DS is working,
Mapping of the beans,
import of data,

I have no idea why i can't grab any of the Components or where they are gone!
The configuration i have checked million times.

I would be pleased if somebody could give some new ideas or hints.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4073520#4073520

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4073520
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.