If your deployed EJB does not work, check the following things:
- Have you stopped and restarted the application server? Sometimes this is required to pick up changes to deployments and configuration.
Whenever you reboot the WebLogic machine, you also need to restart the WebLogic server from the Start menu.
- Is the enterprise server you require running?
- Are the required services deployed to the enterprise server? Were they deployed successfully? You can check this by looking
in the Enterprise Server Administration console,
http://locahost:86, in
deploy/.../deploylog.txt and
/var/mfcobol/es/esname/console.log, where
esname is your enterprise server name, such as ESDEMO.
- Was any information written to the resource adapter log file
cobcon.log? This log file is located in the directory defined in your Java system's user.home property. This directory equates by default
to your user profile directory. If there wasn't any information written to the log file, the failure occurred before the resource
adapter was invoked. The failure might lie in the application server setup. Notice that there are backup log files
cobcon1.log and
cobcon2.log.
- Is the
trace parameter in the
ra.xml file set to
true? If it is, then you can find trace information in the application server's log file. For information on on editing the
ra.xml file, see
Deployment Descriptors that Are Required. See your application server's documentation for further details with regard to the log file.
- Was any information written to the communications server log file
log.html? See
Communications Server Log Files for more information.
- When you generated your EJB using the Deploy tool, did you use the J2EE connector classes specific to your application server?
For example, you must use
WebLogic.jar for WebLogic EJB generation and
j2ee.jar for WebSphere EJB generation. You specify these classes in the Classpath settings of the Deploy tool.
- Is the JNDI name of the resource adapter set to the respective
eis/MFCobol_v1.n as specified in the topic
To Create Deployment Descriptors Manually? Is this JNDI name mapped to the resource references of the EJB?
- Is the JNDI name for each EJB the same wherever it is referred to? When you assign a JNDI name to an EJB, any client or other
software that uses that EJB must use that same JNDI name.
- Are the EJB and the resource adapter successfully deployed in your application server?
- What failures are recorded in your application server's log files? All the supported application servers have a
logs subdirectory.