geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <kaare...@hotmail.com>
Subject Re: Fail deploying a simple EJB (JavaBean)
Date Sun, 03 Apr 2005 12:32:58 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Moving the thread...<BR><BR></P></DIV>
<DIV></DIV>&gt;From: David Jencks &lt;djencks@gluecode.com&gt;
<DIV></DIV>&gt;Reply-To: dev@geronimo.apache.org
<DIV></DIV>&gt;To: dev@geronimo.apache.org
<DIV></DIV>&gt;Subject: Re: Fail deploying a simple EJB (JavaBean)
<DIV></DIV>&gt;Date: Sat, 2 Apr 2005 17:12:51 -0800
<DIV></DIV>&gt;
<DIV></DIV>&gt;if your jsp page is unchanged from your earlier post, you either
<DIV></DIV>&gt;need&nbsp;&nbsp;to look up java:comp/env/ejb/DateEJB
or change your ejb-ref to
<DIV></DIV>&gt;indicate&nbsp;&nbsp;that you are planning to look up
DateEJB.
<DIV></DIV>&gt;
<DIV></DIV>&gt;Could you move this thread to the geronimo-user list please?
<DIV></DIV>&gt;
<DIV></DIV>&gt;thanks
<DIV></DIV>&gt;david jencks
<DIV></DIV>&gt;
<DIV></DIV>&gt;On Apr 2, 2005, at 3:54 PM, Katia Aresti Gonzalez wrote:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&gt;Hi David!!!
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Ive done what you say....
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;David Jencks wrote:
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;"You need to use an ejb-ref or a local ejb-ref in your
web.xml dd.&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;The jndi-name element in openejb-jar.xml
is basically only for&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;non-j2ee clients such as corba.&nbsp; Since your
entire app is in an ear
<DIV></DIV>&gt;&gt;I&nbsp;&nbsp;would suggest using an ejb-link.&nbsp;
In this case, even if you
<DIV></DIV>&gt;&gt;don't use&nbsp;&nbsp;ejb-link, geronimo will
almost certainly figure out the
<DIV></DIV>&gt;&gt;link.&nbsp; You&nbsp;&nbsp;shouldn't need
the openejb-jar.xml plan for an app this
<DIV></DIV>&gt;&gt;simple.
<DIV></DIV>&gt;&gt;web.xml.
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;&lt;?xml version="1.0"?&gt;
<DIV></DIV>&gt;&gt;&lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee"
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;version="2.4"&gt;
<DIV></DIV>&gt;&gt;&nbsp; &lt;display-name&gt;GeronimoTestWebApp&lt;/display-name&gt;
<DIV></DIV>&gt;&gt;&nbsp; &lt;resource-ref&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;res-ref-name&gt;jdbc/DataSource&lt;/res-ref-name&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;res-auth&gt;Container&lt;/res-auth&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
<DIV></DIV>&gt;&gt;&nbsp; &lt;/resource-ref&gt;
<DIV></DIV>&gt;&gt;&nbsp; &lt;ejb-ref&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp; &lt;description&gt;Date
Session bean&lt;/description&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp; &lt;ejb-ref-name&gt;ejb/DateEJB&lt;/ejb-ref-name&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp; &lt;home&gt;test.ejb.DateHome&lt;/home&gt;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp; &lt;remote&gt;test.ejb.DateRemote&lt;/remote&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;ejb-link&gt;DateEJB&lt;/ejb-link&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&nbsp; &lt;/ejb-ref&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&lt;/web-app&gt;
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;But still doesnt work!!!! :-( I don know if im doing
wrong the&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;reference, or what...
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;This is&nbsp;Geronimo Report when deploying and
the error!!!!
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;01:50:15,031 INFO&nbsp; [LocalConfigStore:config-store]
Installed&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;configuration Geron
<DIV></DIV>&gt;&gt;imoTestApp in location 40
<DIV></DIV>&gt;&gt;01:50:15,140 INFO&nbsp; [ConfigurationManagerImpl]
Loaded Configuration&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;geronimo.conf
<DIV></DIV>&gt;&gt;ig:name="GeronimoTestApp"
<DIV></DIV>&gt;&gt;01:50:15,234 INFO&nbsp; [Configuration] Started
configuration&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;GeronimoTestApp
<DIV></DIV>&gt;&gt;01:50:15,265 INFO&nbsp; [GenericEJBContainer] GenericEJBContainer&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;'geronimo.server:EJ
<DIV></DIV>&gt;&gt;BModule=gtest-
<DIV></DIV>&gt;&gt;ejbs.jar,J2EEApplication=GeronimoTestApp,J2EEServer=geronimo,j2eeT
<DIV></DIV>&gt;&gt;ype=StatelessSessionBean,name=DateEJB' started
<DIV></DIV>&gt;&gt;01:50:15,296 INFO&nbsp; [Container] Started&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.WebApplicationH
<DIV></DIV>&gt;&gt;andler@1ab9bfe
<DIV></DIV>&gt;&gt;01:50:15,296 INFO&nbsp; [/GeronimoTestWebApp] JSR154&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;unwrappedDispatchSupported=true
<DIV></DIV>&gt;&gt;01:50:15,296 INFO&nbsp; [JettyWebAppContext] JettyWebAppContext
started
<DIV></DIV>&gt;&gt;01:50:15,296 INFO&nbsp; [Container] Started&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;WebApplicationContext[/GeronimoTestWebApp
<DIV></DIV>&gt;&gt;,GeronimoTestWebApp]
<DIV></DIV>&gt;&gt;Naming exception occurred during initialization&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;javax.naming.NameNotFoundExcepti
<DIV></DIV>&gt;&gt;on: DateEJB
<DIV></DIV>&gt;&gt;javax.naming.NameNotFoundException: DateEJB
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex
<DIV></DIV>&gt;&gt;t.java:209)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:5
<DIV></DIV>&gt;&gt;1)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
<DIV></DIV>&gt;&gt;javax.naming.InitialContext.lookup(InitialContext.java:347)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.jsp.ejbtest_jsp._jspService(org.apache.jsp.ejbtest_jsp:72)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
<DIV></DIV>&gt;&gt;javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
<DIV></DIV>&gt;&gt;.java:325)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
<DIV></DIV>&gt;&gt;95)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
<DIV></DIV>&gt;&gt;javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427
<DIV></DIV>&gt;&gt;)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde
<DIV></DIV>&gt;&gt;r.java:92)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
<DIV></DIV>&gt;&gt;WebApplicationHandler.java:833)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171
<DIV></DIV>&gt;&gt;)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
<DIV></DIV>&gt;&gt;WebApplicationHandler.java:824)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
<DIV></DIV>&gt;&gt;onHandler.java:474)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
<DIV></DIV>&gt;&gt;56)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
<DIV></DIV>&gt;&gt;org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
<DIV></DIV>&gt;&gt;Context.java:625)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
<DIV></DIV>&gt;&gt;org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpServer.service(HttpServer.java:958)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
<DIV></DIV>&gt;&gt;244)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at&nbsp;&nbsp;
<DIV></DIV>&gt;&gt;org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;&nbsp;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Acepta el reto MSN Premium: incluye Antivirus y Firewall
de
<DIV></DIV>&gt;&gt;McAffee.&nbsp;&nbsp;Descárgalo y pruébalo
2 meses gratis.
<DIV></DIV></div><br clear=all><hr>Descubre la descarga digital
segura.  <a href="http://g.msn.com/8HMAESES/2755??PS=47575" target="_top">Medio millón
de canciones en MSN Music. </a> </html>


Mime
View raw message