Solved

jndi.properties' file was not present in the classpath

Posted on 2006-11-08
8
308 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Java Servlet inside Eclipse Luna 6 156
trouble with PDF encryption using itext-1.3.1 17 84
maven project in eclipse 11 59
TreeSet comparator example 7 95
Troubleshooting common task sequence error codes
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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