Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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>
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic