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 Sat, 02 Apr 2005 23:54:55 GMT
<html><div style='background-color:'><DIV class=RTE>
<P><FONT face="Courier New">Hi David!!!</FONT></P>
<P><FONT face="Courier New">Ive done what you say....</FONT></P>
<P><FONT face="Courier New">David Jencks wrote:</FONT></P>
<P><FONT face="Courier New">"You need to use an ejb-ref or a local ejb-ref in
your web.xml dd.&nbsp; The jndi-name element in openejb-jar.xml is basically only for
non-j2ee clients such as corba.&nbsp; Since your entire app is in an ear I would suggest
using an ejb-link.&nbsp; In this case, even if you don't use ejb-link, geronimo will almost
certainly figure out the link.&nbsp; You shouldn't need the openejb-jar.xml plan for an
app this simple.</FONT></P><FONT face="Courier New"></FONT></DIV>
<DIV class=RTE><FONT face="Courier New">web.xml.</FONT></DIV>
<DIV class=RTE><FONT face="Courier New">&nbsp;</FONT></DIV>
<DIV class=RTE>&lt;?xml version="1.0"?&gt;</DIV>
<DIV class=RTE>&lt;web-app xmlns="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xsi:schemaLocation="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</A>"
version="2.4"&gt;</DIV>
<DIV class=RTE>&nbsp; &lt;display-name&gt;GeronimoTestWebApp&lt;/display-name&gt;<BR>&nbsp;
&lt;resource-ref&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;res-ref-name&gt;jdbc/DataSource&lt;/res-ref-name&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-auth&gt;Container&lt;/res-auth&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;<BR>&nbsp;
&lt;/resource-ref&gt;<BR>&nbsp; &lt;ejb-ref&gt;</DIV>
<DIV class=RTE>&nbsp;&nbsp; &lt;description&gt;Date Session bean&lt;/description&gt;</DIV>
<DIV class=RTE>&nbsp;&nbsp; &lt;ejb-ref-name&gt;ejb/DateEJB&lt;/ejb-ref-name&gt;&nbsp;
</DIV>
<DIV class=RTE>&nbsp;&nbsp; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;&nbsp;
<BR>&nbsp;<BR>&nbsp;&nbsp; &lt;home&gt;test.ejb.DateHome&lt;/home&gt;<BR>&nbsp;&nbsp;
&lt;remote&gt;test.ejb.DateRemote&lt;/remote&gt;&nbsp; <BR>&nbsp;&nbsp;&nbsp;
<BR>&nbsp;&nbsp;&nbsp; &lt;ejb-link&gt;DateEJB&lt;/ejb-link&gt;</DIV>
<DIV class=RTE><BR>&nbsp; &lt;/ejb-ref&gt;</DIV>
<DIV class=RTE><BR>&lt;/web-app&gt;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>But still doesnt work!!!! :-( I don know if im doing wrong the reference,
or what...</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE><U>This is&nbsp;Geronimo Report when deploying and the error!!!!</U></DIV>
<DIV class=RTE><BR>01:50:15,031 INFO&nbsp; [LocalConfigStore:config-store]
Installed configuration Geron<BR>imoTestApp in location 40<BR>01:50:15,140 INFO&nbsp;
[ConfigurationManagerImpl] Loaded Configuration geronimo.conf<BR>ig:name="GeronimoTestApp"<BR>01:50:15,234
INFO&nbsp; [Configuration] <STRONG>Started configuration GeronimoTestApp</STRONG><BR>01:50:15,265
INFO&nbsp; [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJ<BR>BModule=gtest-ejbs.jar,J2EEApplication=GeronimoTestApp,J2EEServer=geronimo,j2eeT<BR>ype=StatelessSessionBean,name=DateEJB'
started<BR>01:50:15,296 INFO&nbsp; [Container] Started org.mortbay.jetty.servlet.WebApplicationH<BR><A
href="mailto:andler@1ab9bfe">andler@1ab9bfe</A><BR>01:50:15,296 INFO&nbsp;
[/GeronimoTestWebApp] JSR154 unwrappedDispatchSupported=true<BR>01:50:15,296 INFO&nbsp;
[JettyWebAppContext] JettyWebAppContext started<BR>01:50:15,296 
INFO&nbsp; [Container] Started WebApplicationContext[/GeronimoTestWebApp<BR>,GeronimoTestWebApp]<BR><STRONG>Naming
exception occurred during initialization javax.naming.NameNotFoundExcepti<BR>on: DateEJB<BR>javax.naming.NameNotFoundException:
DateEJB<BR></STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex<BR>t.java:209)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:5<BR>1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.naming.InitialContext.lookup(InitialContext.java:347)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.jsp.ejbtest_jsp._jspService(org.apache.jsp.ejbtest_jsp:72)</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper<BR>.java:325)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2<BR>95)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at 
org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde<BR>r.java:92)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(<BR>WebApplicationHandler.java:833)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(<BR>WebApplicationHandler.java:824)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati<BR>onHandler.java:474)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5<BR>56)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1563)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication<BR>Context.java:625)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpServer.service(HttpServer.java:958)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:<BR>244)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)<BR><BR></DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<P class=RTE><BR><BR><BR><BR></P>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Acepta el reto MSN Premium:
incluye Antivirus y Firewall de McAffee. <a href="http://g.msn.com/8HMAESES/2731??PS=47575"
target="_top">Descárgalo y pruébalo 2 meses gratis.</a> </html>


Mime
View raw message