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
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
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
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
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
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Failed lookup jndi in Seam + Tomcat

- Failed lookup jndi in Seam + Tomcat

2007-06-12       - By kiekie96

 Back
Hi, sorry for the basic question, ive tried to googled and read from this forum
about my problem but still stucked.

Im using tomcat 5.5 + Seam 1.2.1.GA,
I want to invoke an ejb stateless bean from an ejb stateles bean in same jvm
using local interface.
So here is the condition,

in Test1Bean.java i have

InitialContext jndiContext = new InitialContext();
ref = jndiContext.lookup( "Test2Bean/local");

Test2BeanLocal test2Bean = (Test2BeanLocal) ref;

And the result is test2Bean always NULL..
Both Test1Bean and Test2Bean only have local interface

In my component.xml, i only have this:

<?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
<components xmlns="http://jboss.com/products/seam/components"
           xmlns:core="http://jboss.com/products/seam/core"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation=
               "http://jboss.com/products/seam/core http://jboss.com/products
/seam/core-1 (See http://ore-1.ora-code.com).2.xsd
                http://jboss.com/products/seam/components http://jboss.com
/products/seam/components-1 (See http://nts-1.ora-code.com).2.xsd">

    <core:init jndi-pattern="#{ejbName}/local" debug="true"/>
   <core:ejb installed="true"/>


i've tried all jndi name possibility:
Test2Bean/local
test2Bean/local
java:/Test2Bean/local
Java:/test2Bean/local
java:comp/env/Test2Bean/local
java:comp/env/test2Bean/local

also, i've tried to add jbossall-client.jar in my web-inf/lib

but always get null.

Please if anybody know how can i get reference to Test2Bean in Test1Bean so i
can invoke any method inside Test2Bean from Test1Bean ?
Any helpfull link would be appreciate.

thx
Kie.

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

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

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