• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

404 Error on web application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to install a web application to WebSphere Application Server Community edition. Here my configs are below. The application installs just fine except for the following message in the logs:

2010-08-16 11:54:54,421 ERROR [TomcatContainer] Unable to add the child container: /myurl . Please check if your project's context-root is unique.

When try to execute the url I get a 404 error in the browser.

Any ideas what the problem is?

geronimo-application.xml
<application application-name="myEar"
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
xmlns:security="http://geronimo.apache.org/xml/ns/security-2.0"
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
<dep:environment>
<dep:moduleId>
<dep:groupId>myEAP</dep:groupId>
<dep:artifactId>myEar</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
<dep:dependencies>
<dep:dependency>
<dep:groupId>org.apache.geronimo.framework</dep:groupId>
<dep:artifactId>j2ee-security</dep:artifactId>
<dep:type>car</dep:type>
</dep:dependency>
</dep:dependencies>
<dep:hidden-classes/>
<dep:non-overridable-classes />
</dep:environment>
<security:security>
<security:role-mappings>
<security:role role-name="myUserRole">
<security:realm realm-name="custom-realm">
<security:principal
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="guest" />
</security:realm>
</security:role>
</security:role-mappings>
</security:security>
</application>

geronimo-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2">
<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
<dep:moduleId>
<dep:groupId>myapp</dep:groupId>
<dep:artifactId>myWar</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>war</dep:type>
</dep:moduleId>
<dep:dependencies>
<dep:dependency>
<dep:groupId>console.dbpool</dep:groupId>
<dep:artifactId>MyDataSource</dep:artifactId>
</dep:dependency>
</dep:dependencies>
<dep:hidden-classes />
<dep:non-overridable-classes />
</dep:environment>
<context-root>/myurl</context-root>
<security-realm-name>custom-realm</security-realm-name>
<resource-ref>
<ref-name>com/anthem/corp/bms/jdbc/mssql</ref-name>
<resource-link>MyDataSource</resource-link>
</resource-ref>
</web-app>
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!