mika wrote:
Well a step forward. You should also define a moduleId in your environment
element (geronimo-application.xml) for easier deploy/undeploy
identification.

Can you post your geronimo-web-*.xml for the tcserver.war ?

Thanks, Mario

Here's my geronimo-web.xml for ccserver.war:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";>
    <environment>
        <moduleId>
            <artifactId>CCSERVERwebAPP</artifactId>
        </moduleId>
    </environment>

    <context-root>/connector</context-root>

    <security-realm-name>geronimo-properties-realm</security-realm-name>
    <security>
        <default-principal>
            <principal name="anonymous"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
            />
        </default-principal>
        <role-mappings>
            <role role-name="AdminRole">
                <principal name="administrators" designated-run-as="true"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
                />
                <principal name="root"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
                />
            </role>
        </role-mappings>
    </security>

  <ejb-ref>
     <ref-name>ejb/clientInterface</ref-name>
     <pattern>
        <artifactId>ejb</artifactId>
        <name>ClientInterfaceJAR/EJBClientInterfaceEJB</name>
     </pattern>
  </ejb-ref>
</web-app>


Is there a special format the <environment>-tag has to look like? Or can I 
write an own created word between?

yes, copied from the link in my last mail:
http://cwiki.apache.org/GMOxDOC11/deployment-plans.html

  <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
    <dep:moduleId>
      <dep:groupId>geronimo</dep:groupId>
      <dep:artifactId>HelloWorld</dep:artifactId>
      <dep:version>1.1</dep:version>
      <dep:type>war</dep:type>
    </dep:moduleId>

<!-- if needed uncomment these lines    -->
<!--                                    -->
<!-- <dep:dependencies>              -->
<!--   <dep:dependency />            -->
<!-- </dep:dependencies>             -->
<!--                                    -->
<!-- <dep:hidden-classes/>           -->
<!--                                    -->
<!-- <dep:non-overridable-classes/>  -->
<!--                                    -->
<!-- #################################  -->

  </dep:environment>

you have to define the full moduleId inlcuding groupId, artifactId, type

Does it play an other role than identification?

the environment section has more options

the moduleId is also responsible for the path created in the repository
for you application ear, you should find the groupId as directory in
the repository with a subdir created from your artifactId

if you separate your groupId name with dots you can create a directory
subtree for your app, e.g. a groupId=myorg.myapps will create

<geronimo-home>/repository/myorg/myapps/<artifactId>/<version>/*

So extend your moduleId in the geronimo-web-*.xml files and try again.

Thanks, Mario

Reply via email to