1. What/where should the <jndi-name> tag be/from in the jboss-web.xml file
below?
2. In the jboss.xml file, what should <jndi-name> and <ejb-name> be? (fyi -
my war context is /acais ...I was told that this might be a prefix in the
tag, not clear on this).
3. According to the error below, it states another file called web-app.xml,
of which I have yet to hear anything of.
Note: I finally got my app working but w/o jboss.xml and jboss-web.xml. But
since I seem to need it (as told by docs and others), I put these back in
and it breaks as follows:
My deployment descriptor are below. Any help w/ my configuration below and
any other need changes would be greatly appreciated.
--- jboss output -----------------------------
[J2EE Deployer Default] Starting module acais-web.war
[Auto deploy] deploy, ctxPath=/acais,
warUrl=file:/u/public/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/acai
s-1.0.ear/web1003/
2001-07-11 02:34:26 - ContextManager: Adding context Ctx( /acais )
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, Begin
[Auto deploy] org.jboss.ejb.DeploymentException: ejb-ref ejb/DBaseFetch
found in jboss-web.xml but not in web-app.xml
[Auto deploy] at
org.jboss.metadata.WebMetaData.importJBossWebXml(WebMetaData.java:152)
--- MyServlet.java -------------------------
Object result = ctx.lookup("java:comp/env/ejb/DBaseListMaps");
DBaseFetchHome home = (DBaseFetchHome)
javax.rmi.PortableRemoteObject.narrow(result,
DBaseFetchHome.class);
--- ~/WEB-INF/jboss-web.xml (of war) --------------
<?xml version="1.0"?>
<jboss-web>
<ejb-ref>
<ejb-ref-name>ejb/DBaseListMaps</ejb-ref-name>
<jndi-name>DBaseListMaps</jndi-name>
</ejb-ref>
</jboss-web>
--- ~/META-INF/jboss.xml (of ejb) -------------------
<?xml version="1.0"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>DBaseFetch</ejb-name>
<jndi-name>acais/DBaseFetch</jndi-name>
</session>
</enterprise-beans>
</jboss>
--- ~/META-INF/ejb-jar.xml (of ejb) -----------------------------
...
<session>
<ejb-name>DBaseListMaps</ejb-name>
<home>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchHome</home>
<remote>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetch</remote>
<ejb-class>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchBean</ejb-cl
ass>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
--- ~/META-INF/application.xml (of ejb) ----------------------
...
<module>
<web>
<web-uri>acais-web.war</web-uri>
<context-root>/acais</context-root>
</web>
</module>
<module>
<ejb>acais-ejb.jar</ejb>
</module>
--- ~/WEB-INF/web.xml (of war) -------------------
...
<ejb-ref>
<ejb-ref-name>ejb/DBaseListMaps</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchHome</home>
<remote>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetch</remote>
<ejb-link>DBaseListMaps</ejb-link>
</ejb-ref>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user