Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jndi.properties' file was not present in the classpath

Posted on 2006-11-08
8
Medium Priority
?
329 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 1500 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2

927 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