geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: "Unable to create configuration for deployment" on Deploying a Web Module
Date Mon, 16 Oct 2006 15:29:24 GMT
The "Unable to create configuration for deployment" message is pretty
vague.  Do you get any more information or a stack trace?  If so,
please post it.  If not, you can try deploying with the command-line
deploy tool and using the --verbose option:

java -jar bin/deployer.jar --verbose deploy mywebapp.war

Thanks,
     Aaron

On 10/16/06, Peter <peter.empen@dak.de> wrote:
> I have added a server-wide database pool named TDB2 in Geronimo 1.1.1. Then
> deploying my web module throws "DeploymentException: Unable to create
> configuration for deployment". Does anybody have an idea, what the cause of
> this Exception is?
>
> web.xml
> =======
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app id="WebApp">
>         <display-name>DienststelleTest</display-name>
>
>         <servlet>
>                 <servlet-name>ServletRedirector</servlet-name>
>                 <servlet-
> class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
>         </servlet>
>
>         <servlet>
>                 <servlet-name>ServletTestRunner</servlet-name>
>                 <servlet-
> class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>
>         </servlet>
>
>         <servlet-mapping>
>                 <servlet-name>ServletRedirector</servlet-name>
>                 <url-pattern>/ServletRedirector</url-pattern>
>         </servlet-mapping>
>
>         <servlet-mapping>
>                 <servlet-name>ServletRedirector</servlet-name>
>                 <url-pattern>/ServletRedirectorSecure</url-pattern>
>         </servlet-mapping>
>
>         <servlet-mapping>
>                 <servlet-name>ServletTestRunner</servlet-name>
>                 <url-pattern>/ServletTestRunner</url-pattern>
>         </servlet-mapping>
>
>         <resource-ref>
>                 <res-ref-name>jdbc/db2</res-ref-name>
>                 <res-type>javax.sql.DataSource</res-type>
>                 <res-auth>Container</res-auth>
>                 <res-sharing-scope>Shareable</res-sharing-scope>
>         </resource-ref>
> </web-app>
>
> geronimo-web.xml
> ================
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
>   <sys:environment>
>     <sys:moduleId>
>       <sys:groupId>Beispielanwendung</sys:groupId>
>       <sys:artifactId>DienststelleTest</sys:artifactId>
>       <sys:version>1.0</sys:version>
>       <sys:type>car</sys:type>
>     </sys:moduleId>
>
>     <sys:dependencies>
>       <sys:dependency>
>         <sys:groupId>console.dbpool</sys:groupId>
>         <sys:artifactId>TDB2</sys:artifactId>
>       </sys:dependency>
>     </sys:dependencies>
>   </sys:environment>
>
>   <context-root>/DienststelleTest</context-root>
>
>   <nam:resource-ref>
>     <nam:ref-name>jdbc/db2</nam:ref-name>
>     <nam:resource-link>TDB2</nam:resource-link>
>   </nam:resource-ref>
> </web-app>
>
>

Mime
View raw message