Solved

jndi.properties' file was not present in the classpath

Posted on 2006-11-08
8
306 Views
Last Modified: 2010-04-01
I got the following error message when i run my web application (JSP, Strut + EJB)

jndi.properties' file was not present in the classpath

My question is how to i create the jndi.properties file?

Please advise
0
Comment
Question by:LeanMoreTryMore
  • 5
  • 3
8 Comments
 

Author Comment

by:LeanMoreTryMore
ID: 17902497
I can't find the jndi.properties file anywhere under my applicaiton.
0
 
LVL 10

Accepted Solution

by:
jaggernat earned 500 total points
ID: 17903578
0
 

Author Comment

by:LeanMoreTryMore
ID: 17903599
I got no data return.
i need to manually create the jndi.properties file
and add the codes to the session bean, isnt it?

please help


any sites i can find the example
0
 

Author Comment

by:LeanMoreTryMore
ID: 17903607
Here is my ejb-jar.xml

<ejb-jar>
  <enterprise-beans>
    <session>
      <description>Session Bean ( Stateless )</description>
      <display-name>SRtypeAppl</display-name>
      <ejb-name>SRtypeAppl</ejb-name>
      <local-home>model.SRtypeApplLocalHome</local-home>
      <local>model.SRtypeApplLocal</local>
      <ejb-class>model.SRtypeApplBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-local-ref>
        <ejb-ref-name>ejb/local/TmpSrType</ejb-ref-name>
        <ejb-ref-type>Entity</ejb-ref-type>
        <local-home>model.TmpSrTypeLocalHome</local-home>
        <local>model.TmpSrTypeLocal</local>
        <ejb-link>TmpSrType</ejb-link>
      </ejb-local-ref>
    </session>
    <entity>
      <description>Entity Bean ( CMP )</description>
      <display-name>TmpSrType</display-name>
      <ejb-name>TmpSrType</ejb-name>
      <local-home>model.TmpSrTypeLocalHome</local-home>
      <local>model.TmpSrTypeLocal</local>
      <ejb-class>model.TmpSrTypeBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Object</prim-key-class>
      <reentrant>False</reentrant>
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>TmpSrType</abstract-schema-name>
      <cmp-field>
        <field-name>srTypeCode</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>srTypeDescr</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>emailTo</field-name>
      </cmp-field>
      <query>
        <query-method>
          <method-name>findAll</method-name>
          <method-params/>
        </query-method>
        <ejb-ql>select object(o) from TmpSrType o</ejb-ql>
      </query>
    </entity>
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>TmpSrType</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>SRtypeAppl</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 10

Expert Comment

by:jaggernat
ID: 17907915
what application server are u using?

websphere or weblogic or something else ?
0
 

Author Comment

by:LeanMoreTryMore
ID: 17909269
tomcat
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 17910004
Tomcat is the webserver. webserver is used for your jsps and java classes.

Application server is where you deploy your EJB's .  Where are you deploying your ejbs?


I dont think its tomcat!
0
 

Author Comment

by:LeanMoreTryMore
ID: 17990227
I deploy to SAP Application Server
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now