Java
Java EE
|
|
Document Revised: 10/3/01 General Questions
Installation and Configuration
Uses of the J2EE TM SDK
Common Errors Encountered During Use
Access and Security Issues
General questions Q1: What is the Java 2 Platform, Enterprise Edition (J2EE) SDK? What is its intended use? The J2EE SDK is the software development kit (SDK) of the reference implementation (RI) of the Java 2 Enterprise Edition (J2EE) Platform. The RI is a complete implementation of the J2EE platform intended as a proof of concept and example for implementations in the application server marketplace. The J2EE SDK includes a J2EE application server and various tools to help developers prototype J2EE applications and learn about the J2EE platform and technologies. It can be used as a J2EE development enviroment for applications prior to their deployment and distribution. The important restriction on its use is that it is not allowed to be put into production use. Q2:Is the J2EE SDK supported on Solaris TM Operating Environment (Intel Platform Edition)? J2EE SDK versions 1.2.1 and 1.3 are not officially supported on the Solaris Operating Environment 8 (Intel Platform Edition, formerly known as X86). One of our goals for a future release is to make the J2EE SDK free of native code, in which case the J2EE SDK is expected to run on Solaris/Intel.
Access and Security Issues Q1: Some applications that ran under J2EE SDK 1.3 beta 2 stop running under the 1.3 FCS release with the following message: When your application ran under the 1.3 beta 2 version of the reference implementation (RI), security permissions may not have been checked. For example, the beta 2 RI allowed calls to enterprise beans that required username-password permission, even when the client provided no username-password information. With 1.3 FCS release, the J2EE SDK became strict about checking adherence to the security policies of J2EE components. How can you make your application run under the FCS release?
Q3: Is the J2EE SDK supported on Windows 95/98/ME? We do not officially support Windows 95/98/ME. It is possible, however, to run the J2EE SDK 1.3 on Windows 95/98/ME with some tweaking in the batch files. Please refer to the forum for more information. Please note that we have not tested the solutions set out there. Q4: How can I receive information about licensing the J2EE Reference Implementation(RI)? To receive information about licensing the J2EE RI, fill out the J2EE License Request form. A member of our licensing team will contact you shortly. The J2EE SDK is free to you if you are using it for development only. As a licensee, you will have the use of RI technology in products you develop, and access to Sun developed tests that can be used to establish J2EE compatibility. If you need to deploy your application into a production environment, you will need to use a J2EE compatible commercial application server. Q5: Why don't you allow the binary J2EE 1.3 SDK to be deployed or redistibuted? J2EE SDK is a complete implementation of the J2EE platform and useful as a J2EE application development environment. It is not designed for production use. Please use a commercial J2EE-compatible product for deployment and production of your application. Q6: When will the source code for the J2EE 1.3 SDK be available? The source code for the J2EE SDK 1.3 is to be available soon after the J2EE SDK final release. Installation and Configuration Q1: I'm having trouble downloading J2EE SDK. Have any common problems been reported? We recommend using Netscape to download our products. Q2: Where do I set the variables for the J2EE SDK on a Windows machine? You can set the value ofJ2EE_HOMEfor a particular window by running userconfig.bat. Open a command prompt and use the following command: Otherwise, open your Control Panel, go to System Properties, and click on the Environment tab, to open a dialog where you can add a new variable called J2EE_HOMEwith its value. This sets the variable for all windows subsequently opened, and you don't have to run the batch file every time you open a new window. The value for the variable is the directory where you installed the J2EE SDK. Set your J2EE_HOMEvariable to assuming you have installed J2EE SDK under c:\.
Q3: Where can I find the XML DTDs for deployment descriptors? There are three places where you can access the DTD files.
The use of each element is documented in the DTD file.
Q4: How do I modify the port number for the deploytool/server to avoid conflicts? The J2EE server listen port number can be modified in the properties file at $J2EE_HOME/config/orb.properties. Q5: How do I do connect to a J2EE server on a different machine? Take these steps to connect to a J2EE server on a different machine:
Q6: I have trouble connecting from a Windows/Solaris client to a Linux server. What should I do? In this situation you may see the following message: Caught an unexpected exception! After the default installation of Red Hat Linux the InetAddress.getLocalHost() method returns the loopback address (127.0.0.1) instead of the actual host address. The fix is to assure that the method returns the actual host by updating the Q7: Is there a JNDI browser provided with the J2EE SDK? How do I set up a JNDI browser for the J2EE SDK? There is no JNDI browser in the RI download, but one is available free through Forte for Java. Here is how to set it up:
Uses of the J2EE SDK Q1: To run Java ServerPages TM , do I need to install the J2EE SDK or do I only need a web server? Java ServerPages (JSP TM ) require a web server and a Java 2 Platform, Standard Edition (J2SE) implementation to run. The J2EE SDK, has the functionality needed for running JSP pages. Q2: Where is the The Q3: How do I debug my J2EE applications running in the J2EE SDK?
The memory Requirements are 198 MB for Forte and 128 MB for J2EE. Dealing With Common Errors Q1: The following error occurred during deployment: The problem can occur if you already have Java API for XML Process (JAXP) installed on your machine (e.g. as part of J2SE). Its path was added to the environment variable Q2: I have received the following error message: The error message may mean you have a port conflict. You may want to close Outlook (or similar programs, such as MS proxy client) and try to start your server again. Another possibility is you already have an instance of the J2EE SDK server running that has claimed the port. You can stop the running of the previous instance to clear the way for starting your server again. Q3: I have encountered the following error: This is an Internationalization issue. It occurs if your classpath does not include the following path: $J2EE_HOME/lib/localeA remedy is to use the command line tools provided with J2EE SDK. The command line tools automatically insert the above path in the classpath. Q4: What should I do if I encounter an error during startup of the J2EE SDK server? Some of the typical causes of an error on startup are the following:
Please refer to the forum for more information. Here is what to do if you receive one of the following messages:
See the discussion at here.
Make sure no older versions of JDK are in CLASSPATH/PATH. Client and server should use the same JDK versions. Q5: What should I do if I encounter an error during deployment? Obtain diagnostic information as follows:
java.lang.ClassCastExceptionwhen running an example that uses Enterprise JavaBeans? |
||||||||