• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

404 Error on web application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic