[ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-104?page=comments#action_12431282 ] Oleg Gusakov commented on GERONIMODEVTOOLS-104: -----------------------------------------------
I added container reference to my WAR in 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>default</sys:groupId> <sys:artifactId>gtest2</sys:artifactId> <sys:version>1.0</sys:version> <sys:type>car</sys:type> </sys:moduleId> </sys:environment> <context-root>/gtest2</context-root> <web-container> <gbean-link>TomcatWebContainer</gbean-link> </web-container> </web-app> The container is defined in geronimo-application.xml ... <gbean name="TomcatWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer"> <attribute name="catalinaHome">var/catalina</attribute> <reference name="EngineGBean"> <name>TomcatEngine</name> </reference> <reference name="ServerInfo"> <name>ServerInfo</name> </reference> <reference name="WebManager"> <name>TomcatWebManager</name> </reference> </gbean> ... Publishsing process finishes without any exceptions, but the WAR never makes it to the server - I watch the Geronimo instance in JConsole - no traces of gtest2, although EclipseConfigStrore and ExteranalExclipseRepository are there. > When TomcatWebContainer moved default location - plugin cannot publish > projects > ------------------------------------------------------------------------------- > > Key: GERONIMODEVTOOLS-104 > URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-104 > Project: Geronimo-Devtools > Issue Type: Bug > Components: eclipse-plugin > Affects Versions: 1.1.0 > Environment: IBM VM 1.5, Win2k SP4, Eclipse 3.2.0, Little-G 1.1 > Reporter: Oleg Gusakov > > I defined Tomcat engine on the application level (in > geronimo-application.xml) because I need to define a lot of virtual hosts. > When I try to deploy a project into the server - I get > org.apache.geronimo.kernel.config.InvalidConfigException: Unable to resolve > reference "Container" in gbean > default/gtest2/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=default/gtest2/1.0/car > to a gbean matching the pattern [?name=TomcatWebContainer#] > caused by "org.apache.geronimo.kernel.GBeanNotFoundException: No matches for > referencePatterns: [?name=TomcatWebContainer#]" > Two problems here (or one as they have the same root cause): > - plugin should be able to present user a choice of available web containers > to deploy to > - what if I rename bean container (can I?) and it becomes > "MyTomcatContainer35" ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
