Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

jndi.properties' file was not present in the classpath

Posted on 2006-11-08
8
Medium Priority
?
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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!

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

715 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