Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
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
JSP - A mailing list about Java Server Pages specification and reference
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
 
Re: javax.naming.NameNotFoundException: Name blah.blahHome is not
bound in thi

Re: javax.naming.NameNotFoundException: Name blah.blahHome is not
bound in thi

2004-01-22       - By Walter Moore

 Back
Reply:     1     2  

ok, more details. I have EJBs residing on an application server
(lac-app) with its domain named mydomain on port 7001.

I have added these parameters to tomcat (in catalina.bat):
-Djava.naming.provider.url=t3://lac-appserv.corp.fedex.com:7001
-Djava.naming.factory.intial=weblogic.jndi.WLInitialContextFactory

What else do I need to do so this application will at least run in this
new enviroment?

       ServiceLocator sl = ServiceLocator.getInstance();
System.out.println("ServiceLocator sl=[" + sl.toString()+"]");
       DMSDAOHome dmsHome =
(DMSDAOHome)sl.getEJBHome("DMSDAO.DMSDAOHome",
com.fedex.lac.dms.DMSDAOHome.class);

getting the service locator worked, but I get an exception when I try to
get the EJBHome.

Any suggestions?

thanks,
Walter Moore

Walter Moore wrote:

> Hi all,
>
> I've been tasked with fixing some code that broke at the new year. My
> problem is that the developer who created the app is not available,  
> and I know little or nothing about tomcat JSPs and EJBs.
>
> However, I've managed to configure tomcat 4.1.29 to work until I try
> to run the app. At which point I get the following error:
> ===============
> javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: Name DMSDAO.DMSDAOHome is not
> bound in this
> Context
>        at org.apache.naming.NamingContext Source code of org.apache.naming.NamingContext(NamingContext.java:811)
>        at org.apache.naming.NamingContext Source code of org.apache.naming.NamingContext(NamingContext.java:194)
>        at
> org.apache.naming.SelectorContext Source code of org.apache.naming.SelectorContext(SelectorContext.java:183)
>        at javax.naming.InitialContext Source code of javax.naming.InitialContext(InitialContext.java:345)
>        at com.fedex.lac.dms.ServiceLocator.getEJBHome(Unknown Source)
>        at
> org.apache.jsp.ProcessLogin_jsp._jspService(ProcessLogin_jsp.java:71)
>
>        at
> org.apache.jasper.runtime.HttpJspBase Source code of org.apache.jasper.runtime.HttpJspBase(HttpJspBase.java:137)
>        at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
>        at
> org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper
> .java:210)
>        at
> org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:2
> 95)
>        at
> org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:241)
>        at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
>        at
> org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Appl
> icationFilterChain.java:247)
>        at
> org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationF
> ilterChain.java:193)
>        at
> org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperV
> alve.java:256)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.jav
> a:480)
>        at
> org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>
>        at
> org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextV
> alve.java:191)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.jav
> a:480)
>        at
> org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>
>        at
> org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(StandardContext.java:
> 2417)
>        at
> org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.j
> ava:180)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>        at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:171)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>        at
> org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.j
> ava:172)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>        at
> org.apache.catalina.valves.AccessLogValve Source code of org.apache.catalina.valves.AccessLogValve(AccessLogValve.java:
> 577)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.jav
> a:480)
>        at
> org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>
>        at
> org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineVal
> ve.java:174)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>        at
> org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.jav
> a:480)
>        at
> org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>
>        at
> org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:19
> 3)
>        at
> org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor.java
> :781)
>        at
> org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:549)
>        at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :589)
>        at
> org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:666)
>        at java.lang.Thread Source code of java.lang.Thread(Thread.java:479)
> =======================
>
> Now, these are the only lines I have added to the default server.xml:
> =======
>        <Context path="/DMS" docBase="DMS" debug="1" >
>          <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="localhost_DMS." suffix=".txt"
> timestamp="true"/>
>          <ResourceLink name="DMSDAO" global="DMSDAO"
>                        type="com.fedex.lac.dms.DMSDAOHome"/>
>          <ResourceLink name="DMSDAOHome" global="DMSDAOHome"
>                        type="com.fedex.lac.dms.DMSDAOHome"/>
>        </Context>
> ========
>
> What am I missing?
>
> thanks,
> Walter Moore
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




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