Solved

jndi.properties' file was not present in the classpath

Posted on 2006-11-08
8
309 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
java.util.concurrent.locks in java 3 199
Fisheye tool 2 116
designing in object programming 12 95
difference between sorce folder and folder in eclipise 3 29
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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