<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. The jndi-name element in openejb-jar.xml is basically only for
non-j2ee clients such as corba. Since your entire app is in an ear I would suggest
using an ejb-link. In this case, even if you don't use ejb-link, geronimo will almost
certainly figure out the link. 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"> </FONT></DIV>
<DIV class=RTE><?xml version="1.0"?></DIV>
<DIV class=RTE><web-app xmlns="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A>"<BR>
xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"<BR>
xsi:schemaLocation="<A href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</A><BR>
<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"></DIV>
<DIV class=RTE> <display-name>GeronimoTestWebApp</display-name><BR>
<resource-ref><BR> <res-ref-name>jdbc/DataSource</res-ref-name><BR>
<res-type>javax.sql.DataSource</res-type><BR>
<res-auth>Container</res-auth><BR>
<res-sharing-scope>Shareable</res-sharing-scope><BR>
</resource-ref><BR> <ejb-ref></DIV>
<DIV class=RTE> <description>Date Session bean</description></DIV>
<DIV class=RTE> <ejb-ref-name>ejb/DateEJB</ejb-ref-name>
</DIV>
<DIV class=RTE> <ejb-ref-type>Session</ejb-ref-type>
<BR> <BR> <home>test.ejb.DateHome</home><BR>
<remote>test.ejb.DateRemote</remote> <BR>
<BR> <ejb-link>DateEJB</ejb-link></DIV>
<DIV class=RTE><BR> </ejb-ref></DIV>
<DIV class=RTE><BR></web-app></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>But still doesnt work!!!! :-( I don know if im doing wrong the reference,
or what...</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE><U>This is Geronimo Report when deploying and the error!!!!</U></DIV>
<DIV class=RTE><BR>01:50:15,031 INFO [LocalConfigStore:config-store]
Installed configuration Geron<BR>imoTestApp in location 40<BR>01:50:15,140 INFO
[ConfigurationManagerImpl] Loaded Configuration geronimo.conf<BR>ig:name="GeronimoTestApp"<BR>01:50:15,234
INFO [Configuration] <STRONG>Started configuration GeronimoTestApp</STRONG><BR>01:50:15,265
INFO [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 [Container] Started org.mortbay.jetty.servlet.WebApplicationH<BR><A
href="mailto:andler@1ab9bfe">andler@1ab9bfe</A><BR>01:50:15,296 INFO
[/GeronimoTestWebApp] JSR154 unwrappedDispatchSupported=true<BR>01:50:15,296 INFO
[JettyWebAppContext] JettyWebAppContext started<BR>01:50:15,296
INFO [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>
at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex<BR>t.java:209)<BR>
at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:5<BR>1)<BR>
at javax.naming.InitialContext.lookup(InitialContext.java:347)<BR>
at org.apache.jsp.ejbtest_jsp._jspService(org.apache.jsp.ejbtest_jsp:72)</DIV>
<DIV class=RTE>
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)<BR>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)<BR>
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper<BR>.java:325)<BR>
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2<BR>95)<BR>
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)<BR>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)<BR>
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427<BR>)<BR>
at
org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde<BR>r.java:92)<BR>
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(<BR>WebApplicationHandler.java:833)<BR>
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171<BR>)<BR>
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(<BR>WebApplicationHandler.java:824)<BR>
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati<BR>onHandler.java:474)<BR>
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5<BR>56)<BR>
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1563)<BR>
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication<BR>Context.java:625)<BR>
at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)<BR>
at org.mortbay.http.HttpServer.service(HttpServer.java:958)<BR>
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)<BR>
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)<BR>
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)<BR>
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:<BR>244)<BR>
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)<BR>
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)<BR><BR></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </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>
|