The application does not start in websphere 8.5.5, but works fine in tomcat

I have a web application that can be deployed to tomcat, but the same application does not start in websphere 8.5.5. I checked the SystemErr.log file, which gives the following information, I can not debug why the application does not start. If I would like to know more about the problem, what should I do.

Application Server Version: Websphere 8.5.5
Java version: java version "1.7.0_25"
OpenJDK workspace (RHEL-2.3.10.4.el6_4-x86_64)

[12/30/13 12:43:01:144 CET] 000000ab SystemErr R Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: Context root /* is already bound. Cannot start application My Application [12/30/13 12:43:01:149 CET] 000000ab SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:759) [12/30/13 12:43:01:149 CET] 000000ab SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634) [12/30/13 12:43:01:149 CET] 000000ab SystemErr R at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426) [12/30/13 12:43:01:149 CET] 000000ab SystemErr R ... 93 more [12/30/13 12:43:01:149 CET] 000000ab SystemErr R Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Context root /* is already bound. Cannot start application My Application [12/30/13 12:43:01:150 CET] 000000ab SystemErr R at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:133) [12/30/13 12:43:01:150 CET] 000000ab SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749) [12/30/13 12:43:01:150 CET] 000000ab SystemErr R ... 95 more 

Here is the web.xml file

 <?xml version="1.0" encoding="UTF-8"?><web-app metadata-complete="true" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>My Application</display-name> <servlet> <display-name>MyApplication</display-name> <servlet-name>app</servlet-name> <servlet-class>com.seeta.vadali.MyReceiverServlet</servlet-class> <init-param> <param-name>uploadDir</param-name> <param-value>/tmp</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>app</servlet-name> <url-pattern>/any</url-pattern> </servlet-mapping> </web-app> 
+7
java guava java-ee-6 websphere websphere-8
source share
4 answers

The error received says that the /* context is already in use by another application. The contexts for your web applications must be unique.

There is no context-root tag in the web.xml you posted, so WebSphere assumes /* . You can do one of the following:

  • Update your web.xml to include the context root . You probably need to redistribute the application for it to take effect.
  • Or Change the context root of your application in WebSphere . You can do this by logging in to the console administrator by going to Applications> Corporate Applications> [Application Name]> Context Root for Web Modules. Then the context root can be specified here.
+5
source share

Finally, I can fix the problem.

My application uses the goava guava library, and the library version is 15.0 . I found that the guava library (version: 15.0) is not compatible with jee6 ( more info ). Therefore, I changed the version from 15.0 to 14.0.1, after which the application was deployed correctly.

What I did not understand, how can I understand with the following error message, what went wrong ??? Don't you think it's hard to understand.

Called: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp

I am sure this is useful information.

+5
source share

I was getting the same error, so what I did was registered in the admin console, then sent to the applications, and then to the Websphere corporate application (here you can find a list of all the applications deployed). Just the default Undeploy application (this application is deployed when the web scope is installed). Once it will not work, it will work.

+2
source share

Go to IBM Console-> Application-> Application Types-> Websphere Enterprice Application.

Uninstall all applications except YOUR STATEMENT.

Websphere automatically creates a sample application and in this application some point to "./"

The problem with mines is resolved as follows.

+1
source share

All Articles