Scott,
Thanks! That got rid of all my problems. It now
finds everything, all the way down to the datasource,
fine.
Does anyone know where on the jboss site there are
docs that talk about the jboss-web.xml file? There's
a big DTD gif outlining jboss.xml, but I dont'
remember reading anything about jboss-web.xml...
Thanks again,
David
==========
Scott M Stark wrote:
> For the jsp issue you need to include a
jboss-web.xml descriptor in the WEB-INF
> dir to map the ejb-refs in the web-app.xml
descriptor to the deployment jndi name:
> <jboss-web>
> <ejb-ref>
> <ejb-ref-name>ejb/UserAuthority</ejb-ref-name>
> <jndi-name>ejb/UserAuthority</jndi-name>
> </ejb-ref>
> </jboss-web>
>
> Your jboss.xml is missing:
>
> <resource-managers>
> <resource-manager res-class="javax.sql.DataSource">
> <res-name>OracleDS</res-name>
> <res-jndi-name>java:/OracleDS</res-jndi-name>
> </resource-manager>
> </resource-managers>
>
> ----- Original Message -----
> From: "David Ward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 11, 2001 6:38 AM
> Subject: [JBoss-user] java:/comp/env problems?
>
>
>
>> Hi all,
>>
>> I'm having a problem where my JSP can't find my ejb
>> when in the java:comp/env namespace in JBoss.
>>
>> In using the pre-configured/bundled
>> JBoss-2.2.1_Tomcat-3.2.1 on RedHat Linux 7.0
(intel),
>> JDK 1.3.0_02, and my EAR I created using the
>> deploytool deploys fine on j2eesdk1.2.1. It's a
>> simple app: a jsp looks up a stateless session ejb
>> which looks up a DataSource pointing at Oracle 8i.
I
>> followed the online docs to the "T" to set up the
>> OracleDS.
>>
>> I've included the pertinant files, but basically,
it
>> doesn't
>> look like the jsp can find the ejb when I reference
it
>> with java:comp/env/... If I change my references
back
>> to not use java:comp/env/, it works on jboss but
not
>> on j2eesdk. How can an EAR be completely J2EE
>> portable when this happens? Any suggestions?
>>
>> Also, another problem I'm having though is
>> that (when I change my code so it can find the ejb)
my
>> ejb can't seem to find the datasource, though
>> it can in the j2eesdk. Is there something wrong
with
>> my jboss.xml file?
>>
>> Thanks for any help (and sorry for the long include
>> below)...
>> David
>>
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user