Receipt of the following error on your browser after deploying the HelloWorld J2EE application you created in :
ERROR: The requested URL could not be retrieved. While trying to retrieve the URL: http://localhost:8000/helloTest_TestApp/dispatch.jsp the following error was encountered: Connection Failed.
|
If your system is behind a firewall, make sure that your browser is configured to not use proxy servers for domains beginning with localhost.
|
Receipt of the following error message:
org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
...
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
...
Error executing J2EE server...
|
This error occurs when another process is already using the 1050 listen port. You can either shut down the other process or change the port number assigned to J2EE Reference Implementation 1.3.1 to something other than 1050, for example, 11050. This error can also occur if the 1060 listen port is in use, even if the 1050 port is not in use. Do the following to correct the problem:
- Determine whether the 1050 port is in use, the 1060 port is in use, or both are in use.
- Change whichever is in use. To change the 1050 port assignment, you must modify the $J2EE_HOME\config\orb.properties file.To change the 1060 port assignment, use a text editor to modify the $J2EE_HOME\setenv.bat (for Microsoft Windows systems), or $J2EE_HOME/setenv.sh file (for Solaris or Red Hat Linux environments).
|
Receipt of an error message similar to the following:
Starting web service at port:8000
Starting secure web service at
port: 7000
J2EE SDK/1.3.1
LifecycleException: null.open: java.net.BindException: Address in use: JVM_Bind
...
Error executing J2EE server...
|
This error occurs if either the 7000 or 8000 web server port is in use. Set the http.port or https.port properties in the $J2EE_HOME/config/web.properties file to a different web server port.
|
Receipt of an error message similar to the following:
Starting web service at port:8000
Starting secure web service at port:7000
J2EE SDK/1.3.1
Starting web service at port:9191
J2EE SDK/1.3.1 LifecycleException: null.open: java.net.BindException: Address in use: JVM_Bind
...
Error executing J2EE server...
|
This error occurs if the 9191 EJB server port is in use. Modify the $J2EE_HOME/config/ejb.properties file to use a different EJB server port.
|
Receipt of ClassNotFoundException when deploying an application using J2EE Reference Implementation 1.3.1.
|
This problem might occur if you installed the IDE to run with the Java 2 SDK, v. 1.3.1, and you started the IDE with the -jdkhome switch option set to a Java 2 SDK, v. 1.4.0 installation. Your application might compile, but you could receive the ClassNotFoundException at deployment time if you used a Java API that is specific only to Java 2 SDK, v. 1.4.0.
Note that the J2EE Reference Implementation 1.3.1 server is set to use the Java 2 SDK specified during the IDE installation and not the Java 2 SDK specified via the -jdkhome switch option.
Do one of the following to correct the problem:
- Edit the JAVA_HOME setting in the J2EE Reference Implementation startup file to use the desired version of the Java 2 SDK. The setting is found in $J2EE_HOME/bin/userconfig.sh in Solaris and Linux environments or in the $J2EE_HOME/bin/userconfig.bat file on Microsoft Windows systems.
- Use a comparable Java API from the Java 2 SDK, v. 1.3.1 platform.
|
Receipt of the following exception:
java.lang.RuntimeException: Could not initialize j2ee server
|
This error occurs if another application has already taken the port number that the J2EE Reference Implementation server is trying to use. You can reboot the J2EE Reference Implementation server to get the port number before the other application does, or troubleshoot the error by following these steps:
- Open your
$J2EE_HOME\config\orb.properties file and make a note of the port number.
- Use the netstat command to see if the number is in use. For example, in a Solaris operating environment, type something similar to the following in a command window:
netstat -a | grep port-number
- If the number is in use by another process, you need to change the port being used by the J2EE Reference Implementation server or by the other process. To find a free port, try running the netstat command again and remove the last couple of digits of the port-number. For example, in a Solaris environment, you might type:
netstat -a | grep 104
This command lists all of the 104 ports in use. If there is a number missing, change the $J2EE_HOME\config\orb.properties file to the number missing from the list.
|